fix/fetch-error-when-login
This commit is contained in:
parent
10990e1715
commit
d4a2376e12
@ -47,20 +47,7 @@ const Timeline = {
|
|||||||
UserCard
|
UserCard
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
const store = this.$store
|
|
||||||
const credentials = store.state.users.currentUser.credentials
|
|
||||||
const showImmediately = this.timeline.visibleStatuses.length === 0
|
|
||||||
|
|
||||||
window.addEventListener('scroll', this.scrollLoad)
|
window.addEventListener('scroll', this.scrollLoad)
|
||||||
|
|
||||||
timelineFetcher.fetchAndUpdate({
|
|
||||||
store,
|
|
||||||
credentials,
|
|
||||||
timeline: this.timelineName,
|
|
||||||
showImmediately,
|
|
||||||
userId: this.userId,
|
|
||||||
tag: this.tag
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
if (typeof document.hidden !== 'undefined') {
|
if (typeof document.hidden !== 'undefined') {
|
||||||
|
Loading…
Reference in New Issue
Block a user