Skip to content

Commit

Permalink
fix(src/ipc/preload.cc): ensure lowercase bundle id in check
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Nov 7, 2024
1 parent 8f75998 commit 6025eb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ipc/preload.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6025eb9

Please sign in to comment.