aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorStephen Blott2015-02-21 06:45:54 +0000
committerStephen Blott2015-02-23 06:25:48 +0000
commit731d45a8e8faf1f209632d5093bef5b554e26bb6 (patch)
treede9d18e0ec901410c124f8ee62d6c8ee77592217 /content_scripts
parent30485767273aabdd1190ba84b3002f8f15526695 (diff)
downloadvimium-731d45a8e8faf1f209632d5093bef5b554e26bb6.tar.bz2
Ensure inconito mode flag and find-mode-history are initialised.
See #1495.
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vimium_frontend.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 609b6b40..28c1f092 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -211,13 +211,13 @@ window.initializeWhenEnabled = ->
do (type) -> installListener window, type, (event) -> handlerStack.bubbleEvent type, event
installListener document, "DOMActivate", (event) -> handlerStack.bubbleEvent 'DOMActivate', event
installedListeners = true
+ FindModeHistory.init()
setState = (request) ->
isEnabledForUrl = request.enabled
passKeys = request.passKeys
isIncognitoMode = request.incognito
initializeWhenEnabled() if isEnabledForUrl
- FindModeHistory.init()
handlerStack.bubbleEvent "registerStateChange",
enabled: isEnabledForUrl
passKeys: passKeys