From fcff8bc70a4e52f9ba2bdb075be58703fdc1e571 Mon Sep 17 00:00:00 2001 From: James Campos Date: Thu, 16 Jun 2011 11:37:32 -0700 Subject: [PATCH] use NAMESPACE --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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', {}