fix(core): update

This commit is contained in:
Philipp Kunz 2023-03-29 19:26:42 +02:00
parent eba8f8b641
commit baaf4d2cfc
3 changed files with 6 additions and 4 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiglobal/typedserver',
version: '2.0.34',
version: '2.0.35',
description: 'easy serving of static files'
}

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiglobal/typedserver',
version: '2.0.34',
version: '2.0.35',
description: 'easy serving of static files'
}

View File

@ -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);
}
}