diff --git a/src/mainWindow.js b/src/mainWindow.js index 62088b9..ba04da5 100644 --- a/src/mainWindow.js +++ b/src/mainWindow.js @@ -1,6 +1,12 @@ if ('' === 'true') { // Disable sentry try { window.__SENTRY__.hub.getClient().getOptions().enabled = false; + + window.__SENTRY__.hub.getClient().close(); + window.__SENTRY__.hub.getScope().clear(); + + window.__SENTRY__.hub.addBreadcrumb = () => {}; + Object.keys(console).forEach(x => console[x] = console[x].__sentry_original__ ?? console[x]); } catch { } }