diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 7daeb5daa..77446e771 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -10143,8 +10143,11 @@ lastupdate: 0, lastchecked: 0 }; - return $.get(items, function(items) { - if (items.lastupdate > now - freq || items.lastchecked > now - $.DAY) { + return $.get(items, function(_arg) { + var lastchecked, lastupdate; + + lastupdate = _arg.lastupdate, lastchecked = _arg.lastchecked; + if ((lastupdate > now - freq) || (lastchecked > now - $.DAY)) { return; } return $.ready(function() { diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index be14dde02..39e3a6fd7 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -10166,8 +10166,11 @@ lastupdate: 0, lastchecked: 0 }; - return $.get(items, function(items) { - if (items.lastupdate > now - freq || items.lastchecked > now - $.DAY) { + return $.get(items, function(_arg) { + var lastchecked, lastupdate; + + lastupdate = _arg.lastupdate, lastchecked = _arg.lastchecked; + if ((lastupdate > now - freq) || (lastchecked > now - $.DAY)) { return; } return $.ready(function() { diff --git a/builds/crx/script.js b/builds/crx/script.js index 618873731..52a8edc6c 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -10148,8 +10148,11 @@ lastupdate: 0, lastchecked: 0 }; - return $.get(items, function(items) { - if (items.lastupdate > now - freq || items.lastchecked > now - $.DAY) { + return $.get(items, function(_arg) { + var lastchecked, lastupdate; + + lastupdate = _arg.lastupdate, lastchecked = _arg.lastchecked; + if ((lastupdate > now - freq) || (lastchecked > now - $.DAY)) { return; } return $.ready(function() { diff --git a/src/General/Main.coffee b/src/General/Main.coffee index 58041a6c5..975c8e115 100644 --- a/src/General/Main.coffee +++ b/src/General/Main.coffee @@ -306,8 +306,8 @@ Main = items = lastupdate: 0 lastchecked: 0 - $.get items, (items) -> - if items.lastupdate > now - freq or items.lastchecked > now - $.DAY + $.get items, ({lastupdate, lastchecked}) -> + if (lastupdate > now - freq) or (lastchecked > now - $.DAY) return $.ready -> $.on window, 'message', Main.message