Fix 403 error with the updater script.
This commit is contained in:
parent
5d36d08280
commit
6f0c16bf3a
@ -4366,13 +4366,13 @@
|
|||||||
Main.addStyle();
|
Main.addStyle();
|
||||||
now = Date.now();
|
now = Date.now();
|
||||||
if (Conf['Check for Updates'] && $.get('lastUpdate', 0) < now - 6 * $.HOUR) {
|
if (Conf['Check for Updates'] && $.get('lastUpdate', 0) < now - 6 * $.HOUR) {
|
||||||
$.on(window, 'message', Main.message);
|
|
||||||
$.ready(function() {
|
$.ready(function() {
|
||||||
|
$.on(window, 'message', Main.message);
|
||||||
|
$.set('lastUpdate', now);
|
||||||
return $.add(d.head, $.el('script', {
|
return $.add(d.head, $.el('script', {
|
||||||
src: 'https://raw.github.com/mayhemydg/4chan-x/master/latest.js'
|
src: 'https://github.com/MayhemYDG/4chan-x/raw/master/latest.js'
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
$.set('lastUpdate', now);
|
|
||||||
}
|
}
|
||||||
g.hiddenReplies = $.get("hiddenReplies/" + g.BOARD + "/", {});
|
g.hiddenReplies = $.get("hiddenReplies/" + g.BOARD + "/", {});
|
||||||
if ($.get('lastChecked', 0) < now - 1 * $.DAY) {
|
if ($.get('lastChecked', 0) < now - 1 * $.DAY) {
|
||||||
|
|||||||
@ -3380,9 +3380,11 @@ Main =
|
|||||||
|
|
||||||
now = Date.now()
|
now = Date.now()
|
||||||
if Conf['Check for Updates'] and $.get('lastUpdate', 0) < now - 6*$.HOUR
|
if Conf['Check for Updates'] and $.get('lastUpdate', 0) < now - 6*$.HOUR
|
||||||
$.on window, 'message', Main.message
|
$.ready ->
|
||||||
$.ready -> $.add d.head, $.el 'script', src: 'https://raw.github.com/mayhemydg/4chan-x/master/latest.js'
|
$.on window, 'message', Main.message
|
||||||
$.set 'lastUpdate', now
|
$.set 'lastUpdate', now
|
||||||
|
$.add d.head, $.el 'script',
|
||||||
|
src: 'https://github.com/MayhemYDG/4chan-x/raw/master/latest.js'
|
||||||
|
|
||||||
g.hiddenReplies = $.get "hiddenReplies/#{g.BOARD}/", {}
|
g.hiddenReplies = $.get "hiddenReplies/#{g.BOARD}/", {}
|
||||||
if $.get('lastChecked', 0) < now - 1*$.DAY
|
if $.get('lastChecked', 0) < now - 1*$.DAY
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user