diff options
| author | Stephen Blott | 2015-01-14 15:41:04 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-14 15:41:04 +0000 |
| commit | 0f80b22ca3a072d843cc79eeae71312a5b2eee74 (patch) | |
| tree | 26cf65bf9ffed0984787a1386454ff1e4dbe09da /content_scripts/vimium_frontend.coffee | |
| parent | 75565049e160042017486c10a61bed3a292e0c58 (diff) | |
| parent | 2e8acc1fcd8661fc3f14d86cbf4329b4fc7f843d (diff) | |
| download | vimium-0f80b22ca3a072d843cc79eeae71312a5b2eee74.tar.bz2 | |
Merge pull request #1427 from smblott-github/fix-race-condition-on-options-page
Fix race condition on the options page.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 351a2690..a3ab051b 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -1140,9 +1140,9 @@ CursorHider = window.addEventListener "scroll", @onScroll initializePreDomReady() -window.addEventListener("DOMContentLoaded", registerFrame) -window.addEventListener("unload", unregisterFrame) -window.addEventListener("DOMContentLoaded", initializeOnDomReady) +DomUtils.documentReady initializeOnDomReady +DomUtils.documentReady registerFrame +window.addEventListener "unload", unregisterFrame window.onbeforeunload = -> chrome.runtime.sendMessage( |
