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' },
|
||||
{ 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: {
|
||||
pending() {
|
||||
return this.$store.getters['auth/pending']
|
||||
}
|
||||
},
|
||||
asyncData({ store, redirect }) {
|
||||
if (store.getters['auth/isLoggedIn']) {
|
||||
redirect('/')
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
setTimeout(() => {
|
||||
// NOTE: quick fix for jumping flexbox implementation
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user