diff --git a/frontend/app.vue b/frontend/app.vue index d7db08a..6d1fd9a 100644 --- a/frontend/app.vue +++ b/frontend/app.vue @@ -42,6 +42,7 @@ onMounted(() => { auth.value = getAuth() if (process.client) { + if (!window) return; window.addEventListener('load', () => { if (!('serviceWorker' in navigator)) { throw new Error('serviceWorker is not supported in current browser!') diff --git a/frontend/pages/news/index.vue b/frontend/pages/news/index.vue index cf63ffe..bfe88f0 100644 --- a/frontend/pages/news/index.vue +++ b/frontend/pages/news/index.vue @@ -9,7 +9,7 @@

{{ longEventDate(item.date.toDate()) }}

{{ item.title }}

{{ item.description }}

- + diff --git a/frontend/pages/settings/about.vue b/frontend/pages/settings/about.vue new file mode 100644 index 0000000..382e776 --- /dev/null +++ b/frontend/pages/settings/about.vue @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/frontend/plugins/firebase.js b/frontend/plugins/firebase.js index ae422e8..093813d 100644 --- a/frontend/plugins/firebase.js +++ b/frontend/plugins/firebase.js @@ -1,5 +1,6 @@ import { initializeApp } from "firebase/app"; import { getMessaging } from "firebase/messaging"; +import { getAnalytics } from "firebase/analytics"; export default defineNuxtPlugin((nuxtApp) => { const firebaseConfig = { @@ -15,4 +16,5 @@ export default defineNuxtPlugin((nuxtApp) => { const app = initializeApp(firebaseConfig); const messaging = getMessaging(app); + const analytics = getAnalytics(app); }) \ No newline at end of file