aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts
diff options
context:
space:
mode:
authorStephen Blott2014-12-29 08:12:59 +0000
committermrmr19932014-12-29 09:11:41 +0000
commit71af7f016f51e3c8b9c1fcfba46cb8289c91e030 (patch)
treeb9f6d8eedd9564fc6b6f09c3ca0acc4a600c8c09 /content_scripts
parentd20caa49075c0605ec2196416a5633d5e205b615 (diff)
downloadvimium-71af7f016f51e3c8b9c1fcfba46cb8289c91e030.tar.bz2
IFrame framework; develop demo.
Diffstat (limited to 'content_scripts')
-rw-r--r--content_scripts/vimium_frontend.coffee10
1 files changed, 4 insertions, 6 deletions
diff --git a/content_scripts/vimium_frontend.coffee b/content_scripts/vimium_frontend.coffee
index 245e481a..5c166ff0 100644
--- a/content_scripts/vimium_frontend.coffee
+++ b/content_scripts/vimium_frontend.coffee
@@ -923,9 +923,6 @@ exitFindMode = ->
window.showHelpDialog = (html, fid) ->
return if (isShowingHelpDialog || !document.body || fid != frameId)
- testUIComponent.show()
- testUIComponent.postMessage "version: #{chrome.runtime.getManifest().version}; random number: #{Math.random()}"
-
isShowingHelpDialog = true
container = document.createElement("div")
container.id = "vimiumHelpDialogContainer"
@@ -972,9 +969,6 @@ window.showHelpDialog = (html, fid) ->
hideHelpDialog = (clickEvent) ->
-
- testUIComponent.hide()
-
isShowingHelpDialog = false
helpDialog = document.getElementById("vimiumHelpDialogContainer")
if (helpDialog)
@@ -1101,6 +1095,10 @@ testUIComponentSetup = ->
testUIComponent.setHideStyle "display: none;"
testUIComponent.setShowStyle "display: block;"
+window.activateTestUIComponent = ->
+ testUIComponent.show()
+ testUIComponent.postMessage "version: #{chrome.runtime.getManifest().version}; random number: #{Math.random()}"
+
initializePreDomReady()
window.addEventListener("DOMContentLoaded", registerFrame)
window.addEventListener("unload", unregisterFrame)