aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-02-08 09:23:11 +0000
committerStephen Blott2015-02-08 09:23:11 +0000
commitbc7db7473456713c8c84f324e71da93145ffa2a0 (patch)
tree151ae9a62640db378f8fde026ae7e0dd7549fa14
parent0c587fe7e9cb150b728d4823dee4bd8715121073 (diff)
downloadvimium-bc7db7473456713c8c84f324e71da93145ffa2a0.tar.bz2
Fix error introduced in 5c155d5eab6632fda9b71713e11af299726d5204.
-rw-r--r--content_scripts/vimium_frontend.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 01ad60fa..b97b26c9 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -512,7 +512,8 @@ checkIfEnabledForUrl = ->
chrome.runtime.sendMessage { handler: "isEnabledForUrl", url: url }, (response) ->
isEnabledForUrl = response.isEnabledForUrl
passKeys = response.passKeys
- initializeWhenEnabled() if isEnabledForUrl
+ if isEnabledForUrl
+ initializeWhenEnabled()
else if (HUD.isReady())
# Quickly hide any HUD we might already be showing, e.g. if we entered insert mode on page load.
HUD.hide()