We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 278c580 + b743041 commit b32a7d4Copy full SHA for b32a7d4
lib/renderer/web-view/web-view.js
@@ -27,7 +27,7 @@ class WebViewImpl {
27
// on* Event handlers.
28
this.on = {}
29
this.browserPluginNode = this.createBrowserPluginNode()
30
- const shadowRoot = this.webviewNode.createShadowRoot()
+ const shadowRoot = this.webviewNode.attachShadow({mode: 'open'})
31
shadowRoot.innerHTML = '<!DOCTYPE html><style type="text/css">:host { display: flex; }</style>'
32
this.setupWebViewAttributes()
33
this.setupFocusPropagation()
0 commit comments