Skip to content

Commit 1015d01

Browse files
committed
fix: incorrect IIFE bundling
1 parent 8b973b4 commit 1015d01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/source/globalmtach-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class GlobalMatchBuild extends Build {
5252
}
5353

5454
const DomainListElements = Array.from(MatchingDomains).map(Domain => JSON.stringify(Domain)).join(', ')
55-
const ExecutionCondition = `(() => {\n const DomainList: string[] = [${DomainListElements}]\n const CurrentURL = new URL(BrowserWindow.location.href)\n if (!DomainList.some(Domain => BrowserWindow.location.href.includes(\`://\${Domain}/\`) || CurrentURL.hostname.endsWith(\`.\${Domain}\`))) {\n return\n }\n\n`
55+
const ExecutionCondition = `;(() => {\n const DomainList: string[] = [${DomainListElements}]\n const CurrentURL = new URL(BrowserWindow.location.href)\n if (!DomainList.some(Domain => BrowserWindow.location.href.includes(\`://\${Domain}/\`) || CurrentURL.hostname.endsWith(\`.\${Domain}\`))) {\n return\n }\n\n`
5656

5757
const Head = SourceText.slice(0, AnchorLineEndIndex + 1)
5858
const Tail = SourceText.slice(AnchorLineEndIndex + 1)

0 commit comments

Comments
 (0)