Refresh only if the watcher list has changed.
This commit is contained in:
parent
d90fd1e016
commit
99b1cfed0b
@ -1531,8 +1531,10 @@
|
||||
$.before(input, favicon);
|
||||
}
|
||||
watcher.refresh();
|
||||
return $.bind(window, 'storage', (function() {
|
||||
return watcher.refresh();
|
||||
return $.bind(window, 'storage', (function(e) {
|
||||
if (e.key === 'AEOS.4chan_x.watched') {
|
||||
return watcher.refresh();
|
||||
}
|
||||
}));
|
||||
},
|
||||
refresh: function() {
|
||||
|
||||
@ -1245,7 +1245,7 @@ watcher =
|
||||
#populate watcher, display watch buttons
|
||||
watcher.refresh()
|
||||
|
||||
$.bind window, 'storage', (-> watcher.refresh() )
|
||||
$.bind window, 'storage', ((e) -> watcher.refresh() if e.key is 'AEOS.4chan_x.watched')
|
||||
|
||||
refresh: ->
|
||||
watched = $.getValue 'watched', {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user