diff options
| author | jasper <jasper92341@hotmail.com> | 2019-02-19 09:42:53 -0800 |
|---|---|---|
| committer | jasper <jasper92341@hotmail.com> | 2019-02-19 09:42:53 -0800 |
| commit | 1e43a47c3c922c4b68e0a84b74cafe6a2ea23bf1 (patch) | |
| tree | 4ac29e0855d1753ca4c49a16d8ca4d26ab55da93 /src | |
| parent | b4709515f22446b032c664e0960419ebea119098 (diff) | |
Update: Fix fetch error when login
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/timeline/timeline.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js index 3fc927f9..ee4ec10b 100644 --- a/src/components/timeline/timeline.js +++ b/src/components/timeline/timeline.js @@ -53,16 +53,16 @@ const Timeline = { window.addEventListener('scroll', this.scrollLoad) - if (typeof credentials !== 'undefined' || this.timelineName !== 'friends') { - timelineFetcher.fetchAndUpdate({ - store, - credentials, - timeline: this.timelineName, - showImmediately, - userId: this.userId, - tag: this.tag - }) - } + if (this.timelineName === 'friends' && !credentials) { return false } + + timelineFetcher.fetchAndUpdate({ + store, + credentials, + timeline: this.timelineName, + showImmediately, + userId: this.userId, + tag: this.tag + }) }, mounted () { if (typeof document.hidden !== 'undefined') { |
