2021-05-05 19:05:01 -06:00
|
|
|
import type * as webViewElementModule from '@electron/internal/renderer/web-view/web-view-element';
|
2023-05-24 12:01:07 -06:00
|
|
|
import type { WebViewImplHooks } from '@electron/internal/renderer/web-view/web-view-impl';
|
|
|
|
|
|
|
|
declare const isolatedApi: WebViewImplHooks;
|
2021-05-05 19:05:01 -06:00
|
|
|
|
2021-05-15 01:42:07 -06:00
|
|
|
if (isolatedApi.guestViewInternal) {
|
2019-01-11 18:00:43 -07:00
|
|
|
// Must setup the WebView element in main world.
|
2021-05-05 19:05:01 -06:00
|
|
|
const { setupWebView } = require('@electron/internal/renderer/web-view/web-view-element') as typeof webViewElementModule;
|
2021-05-15 01:42:07 -06:00
|
|
|
setupWebView(isolatedApi);
|
2019-01-11 18:00:43 -07:00
|
|
|
}
|