From 0400ecb42fea5e1ba1c3f7de823239ae2ee900e9 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 27 Oct 2011 22:28:30 +0200 Subject: [PATCH] We'll need this for the stable branch. --- 4chan_x.user.js | 6 +++--- script.coffee | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a913b3611..5f760e9db 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2953,7 +2953,7 @@ }; Main = { init: function() { - var cutoff, hiddenThreads, id, lastChecked, now, pathname, reqUpdate, temp, timestamp, _ref; + var cutoff, hiddenThreads, id, lastChecked, now, pathname, temp, timestamp, _ref; if (location.hostname === 'sys.4chan.org') { QR.sys(); return; @@ -2970,8 +2970,8 @@ g.hiddenReplies = $.get("hiddenReplies/" + g.BOARD + "/", {}); lastChecked = $.get('lastChecked', 0); now = Date.now(); - reqUpdate = lastChecked < now - 1 * DAY; - if (reqUpdate) { + Main.reqUpdate = lastChecked < now - 1 * DAY; + if (Main.reqUpdate) { $.set('lastChecked', now); cutoff = now - 7 * DAY; hiddenThreads = $.get("hiddenThreads/" + g.BOARD + "/", {}); diff --git a/script.coffee b/script.coffee index 7ef332b3a..d1fb56071 100644 --- a/script.coffee +++ b/script.coffee @@ -2254,9 +2254,9 @@ Main = lastChecked = $.get 'lastChecked', 0 now = Date.now() - reqUpdate = lastChecked < now - 1*DAY + Main.reqUpdate = lastChecked < now - 1*DAY - if reqUpdate + if Main.reqUpdate $.set 'lastChecked', now cutoff = now - 7*DAY