refactor: use WeakMap instead of hidden V8 properties to store WebViewImpl (#29049)
This commit is contained in:
parent
de55bf8459
commit
49ef1fe342
5 changed files with 23 additions and 21 deletions
|
@ -11,5 +11,5 @@ const webViewImpl = v8Util.getHiddenValue(isolatedWorld, 'web-view-impl');
|
|||
if (webViewImpl) {
|
||||
// Must setup the WebView element in main world.
|
||||
const { setupWebView } = require('@electron/internal/renderer/web-view/web-view-element') as typeof webViewElementModule;
|
||||
setupWebView(v8Util, webViewImpl as any);
|
||||
setupWebView(webViewImpl as any);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue