[NoTrack] Possible fix
This commit is contained in:
parent
e3cfc8dcdc
commit
c6f2f5eb78
2 changed files with 3 additions and 3 deletions
4
src/bootstrap.js
vendored
4
src/bootstrap.js
vendored
|
@ -41,8 +41,8 @@ const startCore = () => {
|
||||||
const [ channel, hash ] = oaVersion.split('-'); // Split via -
|
const [ channel, hash ] = oaVersion.split('-'); // Split via -
|
||||||
|
|
||||||
bw.webContents.executeJavaScript(readFileSync(join(__dirname, 'mainWindow.js'), 'utf8')
|
bw.webContents.executeJavaScript(readFileSync(join(__dirname, 'mainWindow.js'), 'utf8')
|
||||||
.replaceAll('<hash>', hash || 'custom'))
|
.replaceAll('<hash>', hash || 'custom')
|
||||||
.replaceAll('<notrack>', oaConfig.noTrack);
|
.replaceAll('<notrack>', oaConfig.noTrack));
|
||||||
|
|
||||||
if (oaConfig.js) bw.webContents.executeJavaScript(oaConfig.js);
|
if (oaConfig.js) bw.webContents.executeJavaScript(oaConfig.js);
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,7 +2,7 @@ if ('<notrack>' === 'true') { // Disable sentry
|
||||||
try {
|
try {
|
||||||
window.__SENTRY__.hub.getClient().getOptions().enabled = false;
|
window.__SENTRY__.hub.getClient().getOptions().enabled = false;
|
||||||
|
|
||||||
// Object.keys(console).forEach(x => console[x] = console[x].__sentry_original__ ?? console[x]);
|
Object.keys(console).forEach(x => console[x] = console[x].__sentry_original__ ?? console[x]);
|
||||||
} catch { }
|
} catch { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue