Skip to content

Commit b32a7d4

Browse files
authored
Merge pull request electron#11798 from electron/shadowroot-deprecate-fix
Migrate deprecated web-view method
2 parents 278c580 + b743041 commit b32a7d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/renderer/web-view/web-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class WebViewImpl {
2727
// on* Event handlers.
2828
this.on = {}
2929
this.browserPluginNode = this.createBrowserPluginNode()
30-
const shadowRoot = this.webviewNode.createShadowRoot()
30+
const shadowRoot = this.webviewNode.attachShadow({mode: 'open'})
3131
shadowRoot.innerHTML = '<!DOCTYPE html><style type="text/css">:host { display: flex; }</style>'
3232
this.setupWebViewAttributes()
3333
this.setupFocusPropagation()

0 commit comments

Comments
 (0)