2022-04-07 07:26:52 -04:00
|
|
|
import * as Sentry from "@sentry/browser";
|
|
|
|
|
import { Integrations } from "@sentry/tracing";
|
|
|
|
|
|
2022-07-14 19:46:50 +02:00
|
|
|
// polyfill for replaceAll
|
2023-02-28 15:44:07 +00:00
|
|
|
import replaceAll from 'core-js-pure/es/string/virtual/replace-all.js';
|
2022-07-14 19:46:50 +02:00
|
|
|
if (!String.prototype.replaceAll)
|
|
|
|
|
String.prototype.replaceAll = replaceAll;
|
|
|
|
|
|
2022-04-07 07:26:52 -04:00
|
|
|
Sentry.init({
|
2024-10-15 07:34:55 +09:00
|
|
|
dsn: "https://79ba4b55fdce475ebc5d37df8b75d72a@gt.pluralkit.me/5",
|
2022-04-07 07:26:52 -04:00
|
|
|
integrations: [new Integrations.BrowserTracing()],
|
|
|
|
|
|
2022-04-07 09:21:57 -04:00
|
|
|
enabled: !window.location.origin.includes("localhost"),
|
2022-04-07 07:26:52 -04:00
|
|
|
debug: false,
|
2022-06-05 13:07:56 -04:00
|
|
|
// @ts-expect-error
|
|
|
|
|
release: window.pluralkitVersion,
|
2022-04-07 07:26:52 -04:00
|
|
|
// Set tracesSampleRate to 1.0 to capture 100%
|
|
|
|
|
// of transactions for performance monitoring.
|
|
|
|
|
// We recommend adjusting this value in production
|
|
|
|
|
tracesSampleRate: 1.0,
|
|
|
|
|
});
|
|
|
|
|
|
2021-12-09 12:53:54 +01:00
|
|
|
import App from './App.svelte'
|
|
|
|
|
|
|
|
|
|
const app = new App({
|
|
|
|
|
target: document.getElementById('app')
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
export default app
|