createShadowRoot => attachShadow
This commit is contained in:
parent
67196bdd3e
commit
b74304145e
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class WebViewImpl {
|
|||
// on* Event handlers.
|
||||
this.on = {}
|
||||
this.browserPluginNode = this.createBrowserPluginNode()
|
||||
const shadowRoot = this.webviewNode.createShadowRoot()
|
||||
const shadowRoot = this.webviewNode.attachShadow({mode: 'open'})
|
||||
shadowRoot.innerHTML = '<!DOCTYPE html><style type="text/css">:host { display: flex; }</style>'
|
||||
this.setupWebViewAttributes()
|
||||
this.setupFocusPropagation()
|
||||
|
|
Loading…
Reference in a new issue