From 2b440edd7e27e4e6595fbf235a83883ad9af2539 Mon Sep 17 00:00:00 2001 From: Phil Crosby Date: Wed, 30 Apr 2014 00:51:45 -0700 Subject: Turn off debug mode I think we want to leave it off in the shipped version --- background_scripts/sync.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'background_scripts') diff --git a/background_scripts/sync.coffee b/background_scripts/sync.coffee index 56c74b81..f1c5c0cc 100644 --- a/background_scripts/sync.coffee +++ b/background_scripts/sync.coffee @@ -26,7 +26,7 @@ root.Sync = Sync = # However, if users have problems, they are unlikely to notice and make sense of console logs on # background pages. So disable it, by default. # For genuine errors, we call console.log directly. - debug: true + debug: false storage: chrome.storage.sync doNotSync: [ "settingsVersion", "previousVersion" ] @@ -52,7 +52,7 @@ root.Sync = Sync = for own key, change of changes @log "handleStorageUpdate: #{key} <- #{change.newValue}" @storeAndPropagate key, change?.newValue - + # Only ever called from asynchronous synced-storage callbacks (fetchAsync and handleStorageUpdate). storeAndPropagate: (key, value) -> return if not key of Settings.defaults @@ -102,4 +102,3 @@ root.Sync = Sync = log: (msg) -> console.log "Sync: #{msg}" if @debug - -- cgit v1.2.3