aboutsummaryrefslogtreecommitdiffstats
path: root/content_scripts/ui_component.coffee
diff options
context:
space:
mode:
authorgdh19952018-10-28 11:53:27 +0800
committergdh19952018-10-28 11:53:27 +0800
commit5307f07729f2a35debbee6ef8c5f09493a8b81bf (patch)
tree6b9d1f696be61d6e13a077756df9407d6f2fc803 /content_scripts/ui_component.coffee
parentacf09d2285b47d5849b4315ac698182dad7e9c13 (diff)
downloadvimium-5307f07729f2a35debbee6ef8c5f09493a8b81bf.tar.bz2
fix a small typo that attachShadow needs an argument
Diffstat (limited to 'content_scripts/ui_component.coffee')
-rw-r--r--content_scripts/ui_component.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/content_scripts/ui_component.coffee b/content_scripts/ui_component.coffee
index f0815d08..d3145eb3 100644
--- a/content_scripts/ui_component.coffee
+++ b/content_scripts/ui_component.coffee
@@ -27,7 +27,8 @@ class UIComponent
seamless: "seamless"
shadowWrapper = DomUtils.createElement "div"
# PhantomJS doesn't support createShadowRoot, so guard against its non-existance.
- @shadowDOM = shadowWrapper.attachShadow?() ? shadowWrapper.createShadowRoot?() ? shadowWrapper
+ @shadowDOM = shadowWrapper.attachShadow?( mode: "open" ) ?
+ shadowWrapper.createShadowRoot?() ? shadowWrapper
@shadowDOM.appendChild styleSheet
@shadowDOM.appendChild @iframeElement
@toggleIframeElementClasses "vimiumUIComponentVisible", "vimiumUIComponentHidden"