From c6f2f5eb7827fea14cb4c54345af8ff6858c633a Mon Sep 17 00:00:00 2001 From: Oj Date: Fri, 10 Jun 2022 11:00:01 +0100 Subject: [PATCH] [NoTrack] Possible fix --- src/bootstrap.js | 4 ++-- src/mainWindow.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bootstrap.js b/src/bootstrap.js index d07c7fe..aba181b 100644 --- a/src/bootstrap.js +++ b/src/bootstrap.js @@ -41,8 +41,8 @@ const startCore = () => { const [ channel, hash ] = oaVersion.split('-'); // Split via - bw.webContents.executeJavaScript(readFileSync(join(__dirname, 'mainWindow.js'), 'utf8') - .replaceAll('', hash || 'custom')) - .replaceAll('', oaConfig.noTrack); + .replaceAll('', hash || 'custom') + .replaceAll('', oaConfig.noTrack)); if (oaConfig.js) bw.webContents.executeJavaScript(oaConfig.js); }); diff --git a/src/mainWindow.js b/src/mainWindow.js index b432a61..6270d76 100644 --- a/src/mainWindow.js +++ b/src/mainWindow.js @@ -2,7 +2,7 @@ if ('' === 'true') { // Disable sentry try { 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 { } }