From 6b7cd5afaaf13b9582a3ac8a53a2c647a48d21db Mon Sep 17 00:00:00 2001 From: James Campos Date: Sat, 30 Jul 2011 22:24:30 -0700 Subject: [PATCH] Revert "You ain't gonna fool a cache, by appending a search to a hash. Yo." This reverts commit 624b4e38534be9cba9b0a116d60a29e92f3b3ca1. `location.origin` is undefined in foxfire --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 8e0141599..36ce515e7 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1698,7 +1698,7 @@ if ((_ref = updater.request) != null) { _ref.abort(); } - url = location.origin + location.pathname + '?' + Date.now(); + url = location.href + '?' + Date.now(); cb = updater.cb.update; return updater.request = $.get(url, cb); } diff --git a/script.coffee b/script.coffee index cfeb48f3e..2495acf0b 100644 --- a/script.coffee +++ b/script.coffee @@ -1380,7 +1380,7 @@ updater = update: -> updater.request?.abort() - url = location.origin + location.pathname + '?' + Date.now() # fool the cache + url = location.href + '?' + Date.now() # fool the cache cb = updater.cb.update updater.request = $.get url, cb