diff --git a/4chan_x.user.js b/4chan_x.user.js index f5831ca55..e340259d4 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1698,7 +1698,7 @@ if ((_ref = updater.request) != null) { _ref.abort(); } - url = location.href + '?' + Date.now(); + url = location.pathname + '?' + Date.now(); cb = updater.cb.update; return updater.request = $.get(url, cb); } diff --git a/changelog b/changelog index 42ece2627..dd62ecd00 100644 --- a/changelog +++ b/changelog @@ -1,4 +1,6 @@ github +- mayhem: + - fix updater when there is a hash in the url 2.17.0 - mayhem: diff --git a/script.coffee b/script.coffee index 2495acf0b..28c3bdae9 100644 --- a/script.coffee +++ b/script.coffee @@ -1380,7 +1380,7 @@ updater = update: -> updater.request?.abort() - url = location.href + '?' + Date.now() # fool the cache + url = location.pathname + '?' + Date.now() # fool the cache cb = updater.cb.update updater.request = $.get url, cb