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.
|
// on* Event handlers.
|
||||||
this.on = {}
|
this.on = {}
|
||||||
this.browserPluginNode = this.createBrowserPluginNode()
|
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>'
|
shadowRoot.innerHTML = '<!DOCTYPE html><style type="text/css">:host { display: flex; }</style>'
|
||||||
this.setupWebViewAttributes()
|
this.setupWebViewAttributes()
|
||||||
this.setupFocusPropagation()
|
this.setupFocusPropagation()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue