Skip to content

Commit d3e8a4f

Browse files
committed
mainWindow: fix notrack passing having no default
1 parent 20b5fa3 commit d3e8a4f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const startCore = () => {
4141

4242
bw.webContents.executeJavaScript(readFileSync(join(__dirname, 'mainWindow.js'), 'utf8')
4343
.replaceAll('<hash>', hash).replaceAll('<channel>', channel)
44-
.replaceAll('<notrack>', oaConfig.noTrack)
44+
.replaceAll('<notrack>', oaConfig.noTrack !== false)
4545
.replace('<css>', (oaConfig.css ?? '').replaceAll('\\', '\\\\').replaceAll('`', '\\`')));
4646

4747
if (oaConfig.js) bw.webContents.executeJavaScript(oaConfig.js);

0 commit comments

Comments
 (0)