We'll need this for the stable branch.
This commit is contained in:
parent
28e0b83466
commit
0400ecb42f
@ -2953,7 +2953,7 @@
|
|||||||
};
|
};
|
||||||
Main = {
|
Main = {
|
||||||
init: function() {
|
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') {
|
if (location.hostname === 'sys.4chan.org') {
|
||||||
QR.sys();
|
QR.sys();
|
||||||
return;
|
return;
|
||||||
@ -2970,8 +2970,8 @@
|
|||||||
g.hiddenReplies = $.get("hiddenReplies/" + g.BOARD + "/", {});
|
g.hiddenReplies = $.get("hiddenReplies/" + g.BOARD + "/", {});
|
||||||
lastChecked = $.get('lastChecked', 0);
|
lastChecked = $.get('lastChecked', 0);
|
||||||
now = Date.now();
|
now = Date.now();
|
||||||
reqUpdate = lastChecked < now - 1 * DAY;
|
Main.reqUpdate = lastChecked < now - 1 * DAY;
|
||||||
if (reqUpdate) {
|
if (Main.reqUpdate) {
|
||||||
$.set('lastChecked', now);
|
$.set('lastChecked', now);
|
||||||
cutoff = now - 7 * DAY;
|
cutoff = now - 7 * DAY;
|
||||||
hiddenThreads = $.get("hiddenThreads/" + g.BOARD + "/", {});
|
hiddenThreads = $.get("hiddenThreads/" + g.BOARD + "/", {});
|
||||||
|
|||||||
@ -2254,9 +2254,9 @@ Main =
|
|||||||
|
|
||||||
lastChecked = $.get 'lastChecked', 0
|
lastChecked = $.get 'lastChecked', 0
|
||||||
now = Date.now()
|
now = Date.now()
|
||||||
reqUpdate = lastChecked < now - 1*DAY
|
Main.reqUpdate = lastChecked < now - 1*DAY
|
||||||
|
|
||||||
if reqUpdate
|
if Main.reqUpdate
|
||||||
$.set 'lastChecked', now
|
$.set 'lastChecked', now
|
||||||
|
|
||||||
cutoff = now - 7*DAY
|
cutoff = now - 7*DAY
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user