aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrmr19932015-09-13 14:26:00 +0100
committermrmr19932015-09-13 14:26:00 +0100
commit2dbd038c4eaa4ac31acb095c73ebedf282d50de3 (patch)
tree3c27d56c90eb6f46c60166b0bc0a0fb556c9dcdf
parentd53e0a2f09f704c8006e04123f453e930232d79e (diff)
downloadvimium-2dbd038c4eaa4ac31acb095c73ebedf282d50de3.tar.bz2
Don't show UIComponent <iframe>s while vimium.css loads
This fixes #1817, where our stylesheet isn't loaded correctly due to a Chromium issue and the Vomnibar/HUD <iframe>s are always visible on the new tab page.
-rw-r--r--content_scripts/ui_component.coffee5
1 files changed, 4 insertions, 1 deletions
diff --git a/content_scripts/ui_component.coffee b/content_scripts/ui_component.coffee
index d935079d..2348d00b 100644
--- a/content_scripts/ui_component.coffee
+++ b/content_scripts/ui_component.coffee
@@ -9,7 +9,10 @@ class UIComponent
styleSheet = DomUtils.createElement "style"
styleSheet.type = "text/css"
# Default to everything hidden while the stylesheet loads.
- styleSheet.innerHTML = "@import url(\"#{chrome.runtime.getURL("content_scripts/vimium.css")}\");"
+ styleSheet.innerHTML = """
+ @import url("#{chrome.runtime.getURL("content_scripts/vimium.css")}");
+ iframe {display: none;}
+ """
@iframeElement = DomUtils.createElement "iframe"
extend @iframeElement,