diff options
| author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-04-02 11:11:17 +0800 |
|---|---|---|
| committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-04-02 11:11:17 +0800 |
| commit | 3151ad980883a1969500a93a4f4504ac19e4c9a8 (patch) | |
| tree | 0520ea5ae60aefb071c5ce5122104c39bca0abe0 /features/events | |
| parent | 1855ae3ac49d0bc4e963566563112c0e6bc2c21b (diff) | |
| download | SoopyV2-3151ad980883a1969500a93a4f4504ac19e4c9a8.tar.gz SoopyV2-3151ad980883a1969500a93a4f4504ac19e4c9a8.tar.bz2 SoopyV2-3151ad980883a1969500a93a4f4504ac19e4c9a8.zip | |
Make more features work when my server is down
Diffstat (limited to 'features/events')
| -rw-r--r-- | features/events/index.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/features/events/index.js b/features/events/index.js index 58c408b..7ce40c8 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -152,7 +152,7 @@ class Events extends Feature { if(!this.showingWaypoints && showingWaypointsNew){ this.loadApi() - }else{ + }else if(showingWaypointsNew){ if(Date.now()-this.nextUpdateApprox > 0 && this.nextUpdateApprox > 0 && Date.now()-this.lastRequest>5000){ this.nextUpdateApprox = -2 this.loadApi() @@ -264,8 +264,10 @@ class Events extends Feature { }) this.burrialData.locations = newLocs - this.sortBurrialLocations() - this.updateBurrialPath() + if(this.showingWaypoints){ + this.sortBurrialLocations() + this.updateBurrialPath() + } } |
