aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authormrmr19932016-02-03 15:46:24 +0000
committermrmr19932016-02-03 15:46:24 +0000
commit31aa6c37794872b9341d8a30f17e72cda373ba59 (patch)
tree83c3980f80f49e120bd8cd5e65160c30b98c7424 /content_scripts
parent7be92c43981bf64869f100c6a8b4a60ba0073264 (diff)
downloadvimium-31aa6c37794872b9341d8a30f17e72cda373ba59.tar.bz2
Fix closing the help dialog
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vimium_frontend.coffee8
1 files changed, 3 insertions, 5 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index fdfef910..bfc09980 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -768,19 +768,17 @@ window.enterFindMode = ->
Marks.setPreviousPosition()
new FindMode()
-window.HelpDialog =
+# If we are in the help dialog iframe, HelpDialog is already defined with the necessary functions.
+window.HelpDialog ?=
helpUI: null
container: null
showing: false
- # This setting is pulled out of local storage. It's false by default.
- getShowAdvancedCommands: -> Settings.get("helpDialog_showAdvancedCommands")
-
init: ->
return if @helpUI?
@helpUI = new UIComponent "pages/help_dialog.html", "vimiumHelpDialogFrame", (event) =>
- @helpUI.hide() if event.data == "hide"
+ @hide() if event.data == "hide"
isReady: -> @helpUI?