aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/vimium_frontend.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-04-17 14:12:46 +0100
committerStephen Blott2016-04-17 14:15:08 +0100
commit10982f57bbbbe802ecc59173ce8a60582f8b34ff (patch)
tree88676dd3d2c6e540347fb83a2419472f73c370aa /content_scripts/vimium_frontend.coffee
parent27385e81debd5fcd9000c718d73e296d6723e83a (diff)
downloadvimium-10982f57bbbbe802ecc59173ce8a60582f8b34ff.tar.bz2
Make showHelp not a background command.
Diffstat (limited to 'content_scripts/vimium_frontend.coffee')
-rw-r--r--content_scripts/vimium_frontend.coffee4
1 files changed, 3 insertions, 1 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 92145303..9f7d9d52 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -155,7 +155,6 @@ initializePreDomReady = ->
checkIfEnabledForUrl document.hasFocus()
requestHandlers =
- toggleHelpDialog: (request) -> if frameId == request.frameId then HelpDialog.toggle request.dialogHtml
focusFrame: (request) -> if (frameId == request.frameId) then focusThisFrame request
getScrollPosition: (ignoredA, ignoredB, sendResponse) ->
sendResponse scrollX: window.scrollX, scrollY: window.scrollY if frameId == 0
@@ -626,6 +625,9 @@ enterFindMode = ->
Marks.setPreviousPosition()
new FindMode()
+window.showHelp = ->
+ chrome.runtime.sendMessage handler: "getHelpDialogHtml", HelpDialog.toggle.bind HelpDialog
+
# If we are in the help dialog iframe, HelpDialog is already defined with the necessary functions.
window.HelpDialog ?=
helpUI: null