forked from AkkomaGang/akkoma-fe
Update: Fix fetch error when login
This commit is contained in:
parent
b4709515f2
commit
1e43a47c3c
1 changed files with 10 additions and 10 deletions
|
@ -53,16 +53,16 @@ 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({
|
|
||||||
store,
|
timelineFetcher.fetchAndUpdate({
|
||||||
credentials,
|
store,
|
||||||
timeline: this.timelineName,
|
credentials,
|
||||||
showImmediately,
|
timeline: this.timelineName,
|
||||||
userId: this.userId,
|
showImmediately,
|
||||||
tag: this.tag
|
userId: this.userId,
|
||||||
})
|
tag: this.tag
|
||||||
}
|
})
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
if (typeof document.hidden !== 'undefined') {
|
if (typeof document.hidden !== 'undefined') {
|
||||||
|
|
Loading…
Reference in a new issue