From 8846d04f3043e4be4be3d8e63c1efb46fe7e0b0e Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Mon, 18 Apr 2016 05:39:01 +0100 Subject: Revert "UI-compnent commands must wait for the document to be ready." This reverts commit c01d7eea8675f9a7d84999777e8de72244d687b6. Preparatory to implementing an alternative approach. --- content_scripts/vimium_frontend.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'content_scripts/vimium_frontend.coffee') diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee index d1ff874e..a80093f9 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -616,9 +616,8 @@ enterFindMode = -> new FindMode() window.showHelp = (sourceFrameId) -> - DomUtils.ifDocumentIsReady -> - chrome.runtime.sendMessage handler: "getHelpDialogHtml", (response) -> - HelpDialog.toggle {sourceFrameId, html: response} + chrome.runtime.sendMessage handler: "getHelpDialogHtml", (response) -> + HelpDialog.toggle {sourceFrameId, html: response} # If we are in the help dialog iframe, then HelpDialog is already defined with the necessary functions. window.HelpDialog ?= -- cgit v1.2.3