aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/mode.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-02-13 16:40:03 +0000
committerStephen Blott2015-02-13 16:40:03 +0000
commitaead8482d7400f4355eb4c339463549a0921ee91 (patch)
treec273090e242b357b97c7683367298ceb26277d62 /content_scripts/mode.coffee
parent43c612d2448872433e82796ab916d66f18480138 (diff)
downloadvimium-aead8482d7400f4355eb4c339463549a0921ee91.tar.bz2
Add callback to runtime message.
The lack of a callback here was causing errors when loading (at least) the options page.
Diffstat (limited to 'content_scripts/mode.coffee')
-rw-r--r--content_scripts/mode.coffee4
1 files changed, 1 insertions, 3 deletions
diff --git a/content_scripts/mode.coffee b/content_scripts/mode.coffee
index cc358bc2..7877d97c 100644
--- a/content_scripts/mode.coffee
+++ b/content_scripts/mode.coffee
@@ -163,9 +163,7 @@ class Mode
@updateBadge: ->
if document.hasFocus()
handlerStack.bubbleEvent "updateBadge", badge = badge: ""
- chrome.runtime.sendMessage
- handler: "setBadge"
- badge: badge.badge
+ chrome.runtime.sendMessage { handler: "setBadge", badge: badge.badge }, ->
# Debugging routines.
logModes: ->