aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content_scripts/vimium_frontend.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 54a3bb2e..4577be8c 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -115,6 +115,9 @@ initializePreDomReady = ->
disableVimium: disableVimium
chrome.extension.onRequest.addListener (request, sender, sendResponse) ->
+ # in the options page, we will receive requests from both content and background scripts. ignore those
+ # from the former.
+ return unless sender.tab?.url.startsWith 'chrome-extension://'
sendResponse requestHandlers[request.name](request, sender)
# Ensure the sendResponse callback is freed.
false