mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Added IntersectionObserver polyfill and fixed linting on login
This commit is contained in:
parent
be9332071d
commit
bcb6dcfacf
@ -43,7 +43,14 @@ module.exports = {
|
|||||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||||
{ hid: 'description', name: 'description', content: pkg.description }
|
{ hid: 'description', name: 'description', content: pkg.description }
|
||||||
],
|
],
|
||||||
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }]
|
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
|
||||||
|
script: [
|
||||||
|
{
|
||||||
|
src:
|
||||||
|
'https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver',
|
||||||
|
body: true
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -113,16 +113,16 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
asyncData({ store, redirect }) {
|
|
||||||
if (store.getters['auth/isLoggedIn']) {
|
|
||||||
redirect('/')
|
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {
|
computed: {
|
||||||
pending() {
|
pending() {
|
||||||
return this.$store.getters['auth/pending']
|
return this.$store.getters['auth/pending']
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
asyncData({ store, redirect }) {
|
||||||
|
if (store.getters['auth/isLoggedIn']) {
|
||||||
|
redirect('/')
|
||||||
|
}
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// NOTE: quick fix for jumping flexbox implementation
|
// NOTE: quick fix for jumping flexbox implementation
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user