From a6907c4c9eae99f261f3e143e4ea9fd1e80226d4 Mon Sep 17 00:00:00 2001 From: Xeovalyte Date: Sat, 1 Oct 2022 13:06:54 +0200 Subject: [PATCH] small fixes --- frontend/app.vue | 1 + frontend/pages/news/index.vue | 2 +- frontend/pages/settings/about.vue | 10 ++++++++++ frontend/plugins/firebase.js | 2 ++ 4 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 frontend/pages/settings/about.vue 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