2018-12-14 06:25:12 +09:00
|
|
|
/* global nodeProcess, isolatedWorld */
|
2018-09-23 00:28:50 +12:00
|
|
|
|
2020-06-22 20:32:45 -07:00
|
|
|
process._linkedBinding = nodeProcess._linkedBinding;
|
2017-01-11 16:36:59 -08:00
|
|
|
|
2020-06-22 20:32:45 -07:00
|
|
|
const v8Util = process._linkedBinding('electron_common_v8_util');
|
2019-03-30 02:10:21 +01:00
|
|
|
|
2020-03-20 13:28:31 -07:00
|
|
|
const webViewImpl = v8Util.getHiddenValue(isolatedWorld, 'web-view-impl');
|
2019-01-12 06:30:43 +05:30
|
|
|
|
|
|
|
if (webViewImpl) {
|
|
|
|
// Must setup the WebView element in main world.
|
2020-03-20 13:28:31 -07:00
|
|
|
const { setupWebView } = require('@electron/internal/renderer/web-view/web-view-element');
|
|
|
|
setupWebView(v8Util, webViewImpl);
|
2019-01-12 06:30:43 +05:30
|
|
|
}
|