mirror of
https://github.com/danbulant/Mangades
synced 2026-06-20 06:41:16 +00:00
attempt to fix error
This commit is contained in:
parent
96bb83b304
commit
888480623c
1 changed files with 2 additions and 1 deletions
|
|
@ -6,7 +6,7 @@ import { BrowserTracing } from "@sentry/tracing";
|
|||
export function load({ url, event }) {
|
||||
let sentry;
|
||||
// @ts-ignore
|
||||
if(import.meta.env.VITE_SENTRY_DSN) if(typeof window === 'undefined') {
|
||||
if(import.meta.env.VITE_SENTRY_DSN && typeof event !== "undefined") if(typeof window === 'undefined') {
|
||||
sentry = new Toucan({
|
||||
// @ts-ignore
|
||||
dsn: import.meta.env.VITE_SENTRY_DSN,
|
||||
|
|
@ -27,6 +27,7 @@ export function load({ url, event }) {
|
|||
'content-type',
|
||||
'x-real-ip',
|
||||
'host',
|
||||
'cf-ipcountry'
|
||||
],
|
||||
allowedSearchParams: /(.*)/
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue