version bump

- new homepage theme inspired by @GraspYonOx
- connect setup also mostly by @GraspYonOx
- some 'fixes' regarding module unloading, hopefully fixing call stack issue
- fixes to wtvshared.isAdmin() to not show log as if it was an access attempt
This commit is contained in:
zefie
2022-11-28 09:51:13 -05:00
parent 203bc73088
commit 12dfd49992
22 changed files with 469 additions and 385 deletions

View File

@@ -72,6 +72,14 @@ class WTVShared {
return src;
}
isAdmin(wtvclient, service_name = "wtv-admin") {
var WTVAdmin = require("./WTVAdmin.js");
var wtva = new WTVAdmin(this.minisrv_config, wtvclient, service_name);
var result = wtva.isAuthorized(true);
wtva, WTVAdmin = null;
return result;
}
parseJSON(json) {
if (!json) return null;
if (typeof json !== 'string') json = json.toString();
@@ -912,12 +920,6 @@ class WTVShared {
});
return outdata;
}
isAdmin(wtvclient, service_name = "wtv-admin") {
var WTVAdmin = require("./WTVAdmin.js");
var wtva = new WTVAdmin(this.minisrv_config, wtvclient, service_name);
return (wtva.isAuthorized() === true) ? true : false;
}
}
class clientShowAlert {