Skip to content

Commit

Permalink
Adds EU logo to the footer and conditionally injects plausible script
Browse files Browse the repository at this point in the history
  • Loading branch information
mdermentzi committed Aug 19, 2024
1 parent d26c30b commit 39f2c8b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
const isLoading = computed(() => store.isLoading);
const dataSource = computed(() => store.dataSource);
watch(
() => route.params.query,
(newQuery) => {
Expand Down
7 changes: 7 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ async function setupI18n() {
app.use(i18n)
app.use(router)
app.mount('#app')

// Inject Plausible analytics script in production
if (import.meta.env.PROD) {
const script = document.getElementById('plausible-script')
script.src = 'https://plausible.io/js/script.js'
script.setAttribute('data-domain', 'dashboard.ehri-project.eu')
}
}

setupI18n()

0 comments on commit 39f2c8b

Please sign in to comment.