createShadowRoot => attachShadow

This commit is contained in:
Shelley Vohr 2018-01-31 19:29:23 -05:00
parent 67196bdd3e
commit b74304145e
No known key found for this signature in database
GPG key ID: F13993A75599653C

View file

@ -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()