From 6025eb9ecb77a005e4b69ee3d247d94fe243d01e Mon Sep 17 00:00:00 2001 From: Joseph Werle Date: Thu, 7 Nov 2024 10:56:37 -0500 Subject: [PATCH] fix(src/ipc/preload.cc): ensure lowercase bundle id in check --- src/ipc/preload.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ipc/preload.cc b/src/ipc/preload.cc index 53249e3587..d69706e65a 100644 --- a/src/ipc/preload.cc +++ b/src/ipc/preload.cc @@ -240,7 +240,7 @@ namespace SSC::IPC { enumerable: true, get: () => { if ( - globalThis.origin.includes(globalThis.__args.config.meta_bundle_identifier) || + globalThis.origin.includes(globalThis.__args.config.meta_bundle_identifier.toLowerCase()) || globalThis.origin.includes(globalThis.__args.client.host + ':' + globalThis.__args.client.port) ) { return globalThis.window && globalThis.top !== globalThis.window @@ -282,7 +282,7 @@ namespace SSC::IPC { enumerable: true, get: () => { if ( - globalThis.origin.includes(globalThis.__args.config.meta_bundle_identifier) || + globalThis.origin.includes(globalThis.__args.config.meta_bundle_identifier.toLowerCase()) || globalThis.origin.includes(globalThis.__args.client.host + ':' + globalThis.__args.client.port) ) { return globalThis.parent !== globalThis @@ -314,7 +314,7 @@ namespace SSC::IPC { enumerable: true, get: () => { if ( - globalThis.origin.includes(globalThis.__args.config.meta_bundle_identifier) || + globalThis.origin.includes(globalThis.__args.config.meta_bundle_identifier.toLowerCase()) || globalThis.origin.includes(globalThis.__args.client.host + ':' + globalThis.__args.client.port) ) { return globalThis.window && globalThis.top !== globalThis.window