Compare commits

...

2 Commits

Author SHA1 Message Date
08463a7599 2.0.35 2023-03-29 19:26:42 +02:00
baaf4d2cfc fix(core): update 2023-03-29 19:26:42 +02:00
4 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@apiglobal/typedserver",
"version": "2.0.34",
"version": "2.0.35",
"description": "easy serving of static files",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",

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