aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'content_scripts/mode.coffee')
-rw-r--r--content_scripts/mode.coffee4
1 files changed, 3 insertions, 1 deletions
diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee
index 8e37ee36..b6cb5fae 100644
--- a/content_scripts/mode.coffee
+++ b/content_scripts/mode.coffee
@@ -175,7 +175,9 @@ class Mode
# suppress badge updates while exiting any existing active singleton. This prevents the badge from
# flickering in some cases.
Mode.badgeSuppressor.runSuppresed =>
- singletons[key].exit() if singletons[key]
+ if singletons[key]
+ console.log singletons[key].count, "singleton:", @name, "(deactivating)"
+ singletons[key].exit()
singletons[key] = @
@onExit => delete singletons[key] if singletons[key] == @