From c48c26354e4382ca96d9e98b0b7291ad940368ce Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sat, 28 Feb 2015 08:58:58 +0000 Subject: 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). --- content_scripts/vimium_frontend.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'content_scripts') 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 -- cgit v1.2.3