aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorStephen Blott2015-01-12 11:55:20 +0000
committerStephen Blott2015-01-12 11:55:44 +0000
commit4504b78613b4a68b838dd887c8b23ec5a71fe779 (patch)
treeab3e5c5d542045f239715f24aed6f9c0704ae4aa /content_scripts
parent9ce07ada32883ac75a1d7436c026a846628181c8 (diff)
downloadvimium-4504b78613b4a68b838dd887c8b23ec5a71fe779.tar.bz2
Fix race condition on the options page (better).
Uses document.readyState for all onDOMContentLoaded dependent functions. This should fix the same race condition as #1426 for all cases.
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vimium_frontend.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 0f42c65b..281cc978 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -1142,7 +1142,7 @@ CursorHider =
initializePreDomReady()
window.addEventListener("DOMContentLoaded", registerFrame)
window.addEventListener("unload", unregisterFrame)
-DomUtils.runWhenDOMLoaded initializeOnDomReady
+DomUtils.documentReady initializeOnDomReady
window.onbeforeunload = ->
chrome.runtime.sendMessage(