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