diff options
| author | Stephen Blott | 2015-02-28 08:58:58 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2015-02-28 08:58:58 +0000 | 
| commit | c48c26354e4382ca96d9e98b0b7291ad940368ce (patch) | |
| tree | 32a521580db2ef0b2bfd28de252d253d2c3bc8e3 | |
| parent | 549b7e6bfe80f420f0429a5c7913d47ec2be9b74 (diff) | |
| download | vimium-c48c26354e4382ca96d9e98b0b7291ad940368ce.tar.bz2 | |
Fix exception on options page.
This adds another handler which is delivered to the options page, but
for which there is no handler.  This was causing an exception on the
background page (console).
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 78901113..8342abb8 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -186,7 +186,7 @@ initializePreDomReady = ->      return if sender.tab and not sender.tab.url.startsWith 'chrome-extension://'      return unless isEnabledForUrl or request.name == 'getActiveState' or request.name == 'setState'      # These requests are delivered to the options page, but there are no handlers there. -    return if request.handler == "registerFrame" or request.handler == "frameFocused" +    return if request.handler in [ "registerFrame", "frameFocused", "unregisterFrame" ]      sendResponse requestHandlers[request.name](request, sender)      # Ensure the sendResponse callback is freed.      false | 
