From a461d8d5ecd1aee1ae4cd28b1e0d12dc04adc152 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Fri, 19 Jan 2018 11:00:44 +0000 Subject: 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. --- content_scripts/vimium_frontend.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3