aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vimium_frontend.coffee
diff options
context:
space:
mode:
authorStephen Blott2015-01-18 17:26:17 +0000
committerStephen Blott2015-01-18 17:26:17 +0000
commit520060d69cff5f7a14e9d3fc2b4480a827110dff (patch)
tree5bf17aff8a94f00d04fe5cb593aab725208c8424 /content_scripts/vimium_frontend.coffee
parent3b334ee221a2b226ca147eec887007eae1c17f91 (diff)
downloadvimium-520060d69cff5f7a14e9d3fc2b4480a827110dff.tar.bz2
Modes; refactor permanent instance.
I had intended the whole Insert.permanentInstance lark to be gone before merging #1413. Somehow, this got missed. It's retained, here, but is only needed for the tests. It gives the tests a hook into the single insert-mode permanent instance, so they can test its state.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
-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 35d92f3c..fdd36ab9 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -124,7 +124,7 @@ initializePreDomReady = ->
# activates/deactivates itself accordingly.
new NormalMode
new PassKeysMode
- new InsertMode
+ new InsertMode permanent: true
checkIfEnabledForUrl()