Merge pull request #83 from MayhemYDG/updater
Fix automatic watcher refresh condition value.
This commit is contained in:
commit
f7d700b941
@ -1536,7 +1536,6 @@
|
|||||||
favicon.src = Favicon.empty;
|
favicon.src = Favicon.empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$.setValue('watcher.lastUpdated', Date.now());
|
|
||||||
return watcher.lastUpdated = Date.now();
|
return watcher.lastUpdated = Date.now();
|
||||||
},
|
},
|
||||||
cb: {
|
cb: {
|
||||||
@ -1564,7 +1563,8 @@
|
|||||||
watched = $.getValue('watched', {});
|
watched = $.getValue('watched', {});
|
||||||
delete watched[board][id];
|
delete watched[board][id];
|
||||||
$.setValue('watched', watched);
|
$.setValue('watched', watched);
|
||||||
return watcher.refresh(watched);
|
watcher.refresh(watched);
|
||||||
|
return $.setValue('watcher.lastUpdated', Date.now());
|
||||||
},
|
},
|
||||||
watch: function(thread, id) {
|
watch: function(thread, id) {
|
||||||
var props, tc, watched, _name;
|
var props, tc, watched, _name;
|
||||||
@ -1577,7 +1577,8 @@
|
|||||||
watched[_name = g.BOARD] || (watched[_name] = {});
|
watched[_name = g.BOARD] || (watched[_name] = {});
|
||||||
watched[g.BOARD][id] = props;
|
watched[g.BOARD][id] = props;
|
||||||
$.setValue('watched', watched);
|
$.setValue('watched', watched);
|
||||||
return watcher.refresh(watched);
|
watcher.refresh(watched);
|
||||||
|
return $.setValue('watcher.lastUpdated', Date.now());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
anonymize = {
|
anonymize = {
|
||||||
|
|||||||
@ -1246,7 +1246,6 @@ watcher =
|
|||||||
favicon.src = Favicon.default
|
favicon.src = Favicon.default
|
||||||
else
|
else
|
||||||
favicon.src = Favicon.empty
|
favicon.src = Favicon.empty
|
||||||
$.setValue 'watcher.lastUpdated', Date.now()
|
|
||||||
watcher.lastUpdated = Date.now()
|
watcher.lastUpdated = Date.now()
|
||||||
|
|
||||||
cb:
|
cb:
|
||||||
@ -1271,6 +1270,7 @@ watcher =
|
|||||||
$.setValue 'watched', watched
|
$.setValue 'watched', watched
|
||||||
|
|
||||||
watcher.refresh watched
|
watcher.refresh watched
|
||||||
|
$.setValue 'watcher.lastUpdated', Date.now()
|
||||||
|
|
||||||
watch: (thread, id) ->
|
watch: (thread, id) ->
|
||||||
tc = $('span.filetitle', thread).textContent or $('blockquote', thread).textContent
|
tc = $('span.filetitle', thread).textContent or $('blockquote', thread).textContent
|
||||||
@ -1284,6 +1284,7 @@ watcher =
|
|||||||
$.setValue 'watched', watched
|
$.setValue 'watched', watched
|
||||||
|
|
||||||
watcher.refresh watched
|
watcher.refresh watched
|
||||||
|
$.setValue 'watcher.lastUpdated', Date.now()
|
||||||
|
|
||||||
anonymize =
|
anonymize =
|
||||||
init: ->
|
init: ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user