diff options
| author | Stephen Blott | 2015-01-12 11:59:30 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-01-12 11:59:30 +0000 |
| commit | 2e8acc1fcd8661fc3f14d86cbf4329b4fc7f843d (patch) | |
| tree | 26cf65bf9ffed0984787a1386454ff1e4dbe09da | |
| parent | 4504b78613b4a68b838dd887c8b23ec5a71fe779 (diff) | |
| download | vimium-2e8acc1fcd8661fc3f14d86cbf4329b4fc7f843d.tar.bz2 | |
Fix race condition on the options page (better still).
a
| -rw-r--r-- | content_scripts/vimium_frontend.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index 281cc978..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) DomUtils.documentReady initializeOnDomReady +DomUtils.documentReady registerFrame +window.addEventListener "unload", unregisterFrame window.onbeforeunload = -> chrome.runtime.sendMessage( |
