mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
* refactor: implement <webview> using contextBridge * chore: address PR feedback * chore: address PR feedback * fix: check for HTMLIFrameElement instance in attachGuest
10 lines
370 B
TypeScript
10 lines
370 B
TypeScript
/* global isolatedApi */
|
|
|
|
import type * as webViewElementModule from '@electron/internal/renderer/web-view/web-view-element';
|
|
|
|
if (isolatedApi.guestViewInternal) {
|
|
// Must setup the WebView element in main world.
|
|
const { setupWebView } = require('@electron/internal/renderer/web-view/web-view-element') as typeof webViewElementModule;
|
|
setupWebView(isolatedApi);
|
|
}
|