gui/modules/desktop/electron/preload.cjs
Neil 414cdc2be8
auth and i81n menu into the sidebar (#285)
* #277 auth into the sidebar

* show version to be removed

* #282 fix notification buttons

* update button colors

---------

Co-authored-by: neil <neil@neils-MacBook-Pro.local>
2023-03-10 16:56:12 +08:00

19 lines
420 B
JavaScript

const isVite = () => {
try {
return window.location.href.includes("is-vite");
} catch (error) {
return false;
}
};
if (!isVite()) {
const { init } = window.require("@sentry/electron/renderer");
const SvelteSentry = window.require("@sentry/svelte");
init(
{
dsn: "https://5ff29bb5b3b64cd4bd4f4960ef1db2e3@o4504750197899264.ingest.sentry.io/4504750206746624",
debug: true
},
SvelteSentry.init
);
}