aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/main.coffee
diff options
context:
space:
mode:
authormrmr19932015-04-24 12:02:09 +0100
committermrmr19932015-04-24 14:08:54 +0100
commit8a659af44a8205f39e4c0e04146978447ca3f38e (patch)
tree46d1441df41944e47b868590d496997d5f896662 /background_scripts/main.coffee
parentef44d0ff49cec17a758b65c10ba4c0ecbc0c2ece (diff)
downloadvimium-8a659af44a8205f39e4c0e04146978447ca3f38e.tar.bz2
Get incognto state directly from chrome.extensions.inIncognitoContext
Diffstat (limited to 'background_scripts/main.coffee')
-rw-r--r--background_scripts/main.coffee3
1 files changed, 1 insertions, 2 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 31ada357..223b0d74 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -89,12 +89,11 @@ getCurrentTabUrl = (request, sender) -> sender.tab.url
# Checks the user's preferences in local storage to determine if Vimium is enabled for the given URL, and
# whether any keys should be passed through to the underlying page.
#
-root.isEnabledForUrl = isEnabledForUrl = (request, sender) ->
+root.isEnabledForUrl = isEnabledForUrl = (request) ->
rule = Exclusions.getRule(request.url)
{
isEnabledForUrl: not rule or rule.passKeys
passKeys: rule?.passKeys or ""
- incognito: sender.tab.incognito
}
# Retrieves the help dialog HTML template from a file, and populates it with the latest keybindings.