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;
|
||||
}
|
||||
}
|
||||
$.setValue('watcher.lastUpdated', Date.now());
|
||||
return watcher.lastUpdated = Date.now();
|
||||
},
|
||||
cb: {
|
||||
@ -1564,7 +1563,8 @@
|
||||
watched = $.getValue('watched', {});
|
||||
delete watched[board][id];
|
||||
$.setValue('watched', watched);
|
||||
return watcher.refresh(watched);
|
||||
watcher.refresh(watched);
|
||||
return $.setValue('watcher.lastUpdated', Date.now());
|
||||
},
|
||||
watch: function(thread, id) {
|
||||
var props, tc, watched, _name;
|
||||
@ -1577,7 +1577,8 @@
|
||||
watched[_name = g.BOARD] || (watched[_name] = {});
|
||||
watched[g.BOARD][id] = props;
|
||||
$.setValue('watched', watched);
|
||||
return watcher.refresh(watched);
|
||||
watcher.refresh(watched);
|
||||
return $.setValue('watcher.lastUpdated', Date.now());
|
||||
}
|
||||
};
|
||||
anonymize = {
|
||||
|
||||
@ -1246,7 +1246,6 @@ watcher =
|
||||
favicon.src = Favicon.default
|
||||
else
|
||||
favicon.src = Favicon.empty
|
||||
$.setValue 'watcher.lastUpdated', Date.now()
|
||||
watcher.lastUpdated = Date.now()
|
||||
|
||||
cb:
|
||||
@ -1271,6 +1270,7 @@ watcher =
|
||||
$.setValue 'watched', watched
|
||||
|
||||
watcher.refresh watched
|
||||
$.setValue 'watcher.lastUpdated', Date.now()
|
||||
|
||||
watch: (thread, id) ->
|
||||
tc = $('span.filetitle', thread).textContent or $('blockquote', thread).textContent
|
||||
@ -1284,6 +1284,7 @@ watcher =
|
||||
$.setValue 'watched', watched
|
||||
|
||||
watcher.refresh watched
|
||||
$.setValue 'watcher.lastUpdated', Date.now()
|
||||
|
||||
anonymize =
|
||||
init: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user