aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2018-01-19 11:00:44 +0000
committerStephen Blott2018-01-19 11:00:44 +0000
commita461d8d5ecd1aee1ae4cd28b1e0d12dc04adc152 (patch)
treed9bbf9ba3f94e1971daa3e708a803ade8c626118
parent50b61b864e90b3c5c794e76bd8babe51587138d3 (diff)
downloadvimium-a461d8d5ecd1aee1ae4cd28b1e0d12dc04adc152.tar.bz2
Fix bug on hashchange event.
This handler is undefined at the point that it is installed. The definition is at the bottom of the file.
-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 3a9e182d..594175ab 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -189,7 +189,7 @@ onFocus = forTrusted (event) ->
# We install these listeners directly (that is, we don't use installListener) because we still need to receive
# events when Vimium is not enabled.
window.addEventListener "focus", onFocus
-window.addEventListener "hashchange", checkEnabledAfterURLChange
+window.addEventListener "hashchange", -> checkEnabledAfterURLChange()
initializeOnDomReady = ->
# Tell the background page we're in the domReady state.