[NoTrack] Possible fix

This commit is contained in:
Ducko 2022-06-10 11:00:01 +01:00
parent e3cfc8dcdc
commit c6f2f5eb78
2 changed files with 3 additions and 3 deletions

4
src/bootstrap.js vendored
View file

@ -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);
}); });

View file

@ -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 { }
} }