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