mirror of
https://github.com/electron/electron.git
synced 2026-01-11 00:18:02 -05:00
Merge pull request #11798 from electron/shadowroot-deprecate-fix
Migrate deprecated web-view method
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user