We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7d8430 commit b1ebb40Copy full SHA for b1ebb40
src/web/index.tsx
@@ -1,12 +1,7 @@
1
+import './init'
2
import { h, render } from 'preact'
3
import { UI } from '~/ui'
4
import { RouterContext, useRouter } from '~/ui/router'
-import firebase from 'firebase/app'
5
-import { CONFIG, SENTRY_URL } from '~/constants'
6
-import { initSentry } from '~/utils/sentry'
7
-
8
-firebase.initializeApp(CONFIG.firebaseApp)
9
-initSentry(SENTRY_URL)
10
11
const ClientUI = () => {
12
const router = useRouter(location.href)
src/web/init.ts
@@ -0,0 +1,6 @@
+import { initializeApp } from 'firebase/app'
+import { CONFIG, SENTRY_URL } from '~/constants'
+import { initSentry } from '~/utils/sentry'
+
+initializeApp(CONFIG.firebaseApp)
+initSentry(SENTRY_URL)
0 commit comments