From 7fb554b547fffa00c25f6f13c179491bf981f53d Mon Sep 17 00:00:00 2001 From: gromdimon Date: Mon, 6 Nov 2023 11:03:27 +0100 Subject: [PATCH] fix: matomo url --- frontend/src/plugins/matomo.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/plugins/matomo.ts b/frontend/src/plugins/matomo.ts index f88be84a..3489b3af 100644 --- a/frontend/src/plugins/matomo.ts +++ b/frontend/src/plugins/matomo.ts @@ -12,6 +12,9 @@ async function setupMatomo(app: App, router: any) { try { const client = new SettingsClient() const response = await client.fetchFrontendSettings() + if (!response['matomo_host'] || !response['matomo_site_id']) { + throw new Error('Matomo host and site ID must be set') + } app.use(VueMatomo, { host: response['matomo_host'],