From 27385e81debd5fcd9000c718d73e296d6723e83a Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 17 Apr 2016 12:17:42 +0100 Subject: Fix 5c3e4bda2968486e23f8cc3410e776de67fec849. In 5c3e4bda2968486e23f8cc3410e776de67fec849, I omitted to observe that we need to know whether the window has the focus *before* the DOM is ready when checking whether Vimium is enabled. This fixes that. --- 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 39e8e5d8..92145303 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -152,7 +152,7 @@ initializeUIComponents = Utils.makeIdempotent -> DomUtils.documentReady -> initializePreDomReady = -> installListeners() Frame.init() - checkIfEnabledForUrl() + checkIfEnabledForUrl document.hasFocus() requestHandlers = toggleHelpDialog: (request) -> if frameId == request.frameId then HelpDialog.toggle request.dialogHtml -- cgit v1.2.3