diff options
| author | Stephen Blott | 2015-02-13 16:40:03 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-02-13 16:40:03 +0000 |
| commit | aead8482d7400f4355eb4c339463549a0921ee91 (patch) | |
| tree | c273090e242b357b97c7683367298ceb26277d62 | |
| parent | 43c612d2448872433e82796ab916d66f18480138 (diff) | |
| download | vimium-aead8482d7400f4355eb4c339463549a0921ee91.tar.bz2 | |
Add callback to runtime message.
The lack of a callback here was causing errors when loading (at least)
the options page.
| -rw-r--r-- | content_scripts/mode.coffee | 4 |
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: -> |
