gui/electron/preload.cjs
Neil 6ad452331b
flatten repo: remove pnpm workspace + merge workspaces (#688)
* remove unused components

* remove pnpm

* implementation of local dev pantry setup (#689)
2023-06-30 10:33:39 +08:00

19 lines
443 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
);
}