do not add webcomponent script in every page

This commit is contained in:
lesion 2022-02-04 22:50:54 +01:00
parent 70d55493e9
commit 20109da120
No known key found for this signature in database
GPG key ID: 352918250B012177
3 changed files with 3 additions and 2 deletions

View file

@ -11,7 +11,6 @@ module.exports = {
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
],
script: [{ src: '/gancio-events.es.js' }],
link: [{ rel: 'icon', type: 'image/png', href: '/logo.png' }]
},
dev: (process.env.NODE_ENV !== 'production'),

View file

@ -180,6 +180,7 @@ export default {
return {
title: `${this.settings.title} - ${this.event.title}`,
script: [{ src: '/gancio-events.es.js', async: true, body: true }],
meta: [
// hid is used as unique identifier. Do not use `vmid` for it as it will not work
{

View file

@ -115,7 +115,8 @@ export default {
},
head () {
return {
title: `${this.settings.title} - ${this.$t('common.export')}`
title: `${this.settings.title} - ${this.$t('common.export')}`,
script: [{ src: '/gancio-events.es.js', async: true, body: true }],
}
},
computed: {