diff --git a/public/src/modules/share.js b/public/src/modules/share.js index a6d39c5918..6fe2f5f8bf 100644 --- a/public/src/modules/share.js +++ b/public/src/modules/share.js @@ -51,7 +51,6 @@ define('share', function() { } function getPostUrl(clickedElement) { - var parts = window.location.pathname.split('/'); var pid = parseInt(clickedElement.parents('[data-pid]').attr('data-pid'), 10); return '/post' + (pid ? '/' + (pid) : ''); }