Added IntersectionObserver polyfill and fixed linting on login

This commit is contained in:
Grzegorz Leoniec 2019-02-24 15:26:25 +01:00
parent be9332071d
commit bcb6dcfacf
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
2 changed files with 13 additions and 6 deletions

View File

@ -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
}
]
}, },
/* /*

View File

@ -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