diff options
| author | Stephen Blott | 2016-04-17 12:17:42 +0100 | 
|---|---|---|
| committer | Stephen Blott | 2016-04-17 12:17:46 +0100 | 
| commit | 27385e81debd5fcd9000c718d73e296d6723e83a (patch) | |
| tree | 2adc41c34b196bdd865a7a5eebe151ae7581de90 /content_scripts/vimium_frontend.coffee | |
| parent | b87ed872263c46919f3098fca3a00705c015b736 (diff) | |
| download | vimium-27385e81debd5fcd9000c718d73e296d6723e83a.tar.bz2 | |
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.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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 | 
