Update: Fix fetch error when login

This commit is contained in:
jasper 2019-02-19 09:42:53 -08:00
parent b4709515f2
commit 1e43a47c3c

View file

@ -53,7 +53,8 @@ const Timeline = {
window.addEventListener('scroll', this.scrollLoad) window.addEventListener('scroll', this.scrollLoad)
if (typeof credentials !== 'undefined' || this.timelineName !== 'friends') { if (this.timelineName === 'friends' && !credentials) { return false }
timelineFetcher.fetchAndUpdate({ timelineFetcher.fetchAndUpdate({
store, store,
credentials, credentials,
@ -62,7 +63,6 @@ const Timeline = {
userId: this.userId, userId: this.userId,
tag: this.tag tag: this.tag
}) })
}
}, },
mounted () { mounted () {
if (typeof document.hidden !== 'undefined') { if (typeof document.hidden !== 'undefined') {