optimize wtv-setup

This commit is contained in:
zefie
2025-08-12 01:51:46 -04:00
parent d0735a99e5
commit cd05918a06
55 changed files with 167 additions and 292 deletions

View File

@@ -1,5 +1,5 @@
var minisrv_service_file = true;
var errpage;
const minisrv_service_file = true;
let errpage;
if (Object.keys(session_data.listPrimaryAccountUsers()).length >= minisrv_config.config.user_accounts.max_users_per_account) {
errpage = wtvshared.doErrorPage(400, "You are not authorized to add more than " + minisrv_config.config.user_accounts.max_users_per_account + ` account${minisrv_config.config.user_accounts.max_users_per_account > 1 ? 's' : ''}.`);