fix(core): update
This commit is contained in:
parent
eba8f8b641
commit
baaf4d2cfc
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@apiglobal/typedserver',
|
||||
version: '2.0.34',
|
||||
version: '2.0.35',
|
||||
description: 'easy serving of static files'
|
||||
}
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@apiglobal/typedserver',
|
||||
version: '2.0.34',
|
||||
version: '2.0.35',
|
||||
description: 'easy serving of static files'
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ export class ReloadChecker {
|
||||
logger.log('warn', `got a status ${response?.status}.`);
|
||||
this.infoscreen.setText(`backend connection lost... Status ${response?.status}`);
|
||||
}
|
||||
if (this.backendConnectionLost) {
|
||||
if (response?.status === 200 && this.backendConnectionLost) {
|
||||
this.backendConnectionLost = false;
|
||||
this.infoscreen.setSuccess('regained connection to backend...');
|
||||
}
|
||||
@ -98,6 +98,8 @@ export class ReloadChecker {
|
||||
this.typedrouter,
|
||||
plugins.typedsocket.TypedSocket.useWindowLocationOriginUrl()
|
||||
);
|
||||
this.typedsocket;
|
||||
logger.log('success', `ReloadChecker connected through typedsocket!`)
|
||||
}
|
||||
}
|
||||
|
||||
@ -111,8 +113,8 @@ export class ReloadChecker {
|
||||
logger.log('info', `ReloadChecker reached backend!`);
|
||||
await this.checkReload(parseInt(await response.text()));
|
||||
await this.connectTypedsocket();
|
||||
await plugins.smartdelay.delayFor(120000);
|
||||
}
|
||||
await plugins.smartdelay.delayFor(120000);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user