🐛 Fixed undefined where sentry cant be disabled

This commit is contained in:
Mawoka
2022-04-09 12:49:41 +02:00
parent ac6f3d86f2
commit f54d3ac9d0
+2 -1
View File
@@ -8,7 +8,8 @@
initLocalizationContext();
if (import.meta.env.VITE_SENTRY !== null) {
if (import.meta.env.VITE_SENTRY !== undefined) {
console.log(import.meta.env.VITE_SENTRY)
Sentry.init({
dsn: String(import.meta.env.VITE_SENTRY),
integrations: [new BrowserTracing()],