diff options
| author | mrmr1993 | 2016-02-11 05:05:17 +0000 |
|---|---|---|
| committer | mrmr1993 | 2016-02-11 05:05:17 +0000 |
| commit | 6bd8318fa1a7faf942cd56b8023f2947d84f3123 (patch) | |
| tree | c7b811b86a15d264a2c9c8c4c5f27fedb640ded3 /content_scripts | |
| parent | 2922fdf80f21d36acd12501dd1b3264377a95895 (diff) | |
| download | vimium-6bd8318fa1a7faf942cd56b8023f2947d84f3123.tar.bz2 | |
Only load help dialog iframe when the dialog is to be shown
Diffstat (limited to 'content_scripts')
| -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 bfc09980..382f0416 100644 --- a/content_scripts/vimium_frontend.coffee +++ b/content_scripts/vimium_frontend.coffee @@ -219,7 +219,6 @@ initializeOnDomReady = -> # We only initialize the vomnibar in the tab's main frame, because it's only ever opened there. Vomnibar.init() if DomUtils.isTopFrame() HUD.init() - HelpDialog.init() unless document.location.toString() == chrome.extension.getURL "pages/help_dialog.html" registerFrame = -> # Don't register frameset containers; focusing them is no use. @@ -783,6 +782,7 @@ window.HelpDialog ?= isReady: -> @helpUI? show: (html) -> + @init() return if HelpDialog.showing or !@isReady() HelpDialog.showing = true @helpUI.activate html |
