We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5258aed commit cbdef30Copy full SHA for cbdef30
src/preload/index.ts
@@ -32,8 +32,12 @@ injectRendererModule({
32
const preloadData = ipcRenderer.sendSync("KERNEL_WINDOW_DATA");
33
34
// If context isolation is off, this should be patched to make sure everything complies.
35
-if (!preloadData?.contextIsolation) {
36
- contextBridge.exposeInMainWorld = (key, value) => window[key] = value;
+if (!!preloadData?.windowOptions?.contextIsolation) {
+ contextBridge.exposeInMainWorld = function (key, value) {
37
+ console.log("aaaa", JSON.stringify(arguments));
38
+
39
+ window[key] = value;
40
+ };
41
}
42
43
if (preloadData?.originalPreload) {
0 commit comments