Compare commits
No commits in common. "04b1bcb0f91141197a8ee9f43b5c67f12fe0297b" and "a7602eed6e78cd7ff46b69ddc53cdb6043430266" have entirely different histories.
04b1bcb0f9
...
a7602eed6e
@ -7,7 +7,7 @@
|
||||
[Watch video (3:30mins)](https://www.sirlab.de/knowyt/know-your-teammates.mp4)
|
||||
|
||||
|
||||
See website https://www.sirlab.de/linux/games/knowyt/
|
||||
See Website https://www.sirlab.de/linux/games/knowyt/
|
||||
|
||||
|
||||
## Installation
|
||||
|
@ -81,31 +81,17 @@ export async function fetchUpdate(this: EngineContext) {
|
||||
const { status, statusText } = e.response
|
||||
if (status == 200) {
|
||||
delay = 1000
|
||||
} else if (status == 403) {
|
||||
// credentials not valid any more
|
||||
this.retry.value = -1
|
||||
this.isActive = false
|
||||
this.shouldStop = false
|
||||
document.location.pathname = '/'
|
||||
return
|
||||
} else {
|
||||
console.warn(`HTTP ${status} ${statusText}`)
|
||||
if (this.retry.value > 30) {
|
||||
// after 90s give up
|
||||
this.retry.value = -1
|
||||
this.isActive = false
|
||||
this.shouldStop = false
|
||||
document.location.pathname = '/'
|
||||
return
|
||||
} else if (this.retry.value > 15) {
|
||||
delay = 5000
|
||||
} else {
|
||||
if (this.retry.value <= 15) {
|
||||
delay = 1000
|
||||
} else {
|
||||
delay = 5000
|
||||
}
|
||||
this.version = -1
|
||||
}
|
||||
} else {
|
||||
// request aborted or other causes, stop fetching
|
||||
// request aborted or other causes
|
||||
console.warn(e.message)
|
||||
|
||||
this.retry.value = -1
|
||||
|
Loading…
x
Reference in New Issue
Block a user