diff --git a/4chan_x.user.js b/4chan_x.user.js index c4e7d48c2..7e02fb4a3 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1557,7 +1557,7 @@ } watcher.refresh(); return $.bind(window, 'storage', function(e) { - if (e.key === 'AEOS.4chan_x.watched') { + if (e.key === ("" + NAMESPACE + "watched")) { return watcher.refresh(); } }); diff --git a/script.coffee b/script.coffee index cb9fe5493..70e58be2f 100644 --- a/script.coffee +++ b/script.coffee @@ -1272,7 +1272,7 @@ watcher = #populate watcher, display watch buttons watcher.refresh() - $.bind window, 'storage', (e) -> watcher.refresh() if e.key is 'AEOS.4chan_x.watched' + $.bind window, 'storage', (e) -> watcher.refresh() if e.key is "#{NAMESPACE}watched" refresh: -> watched = $.getValue 'watched', {}