minor fix

This commit is contained in:
2026-05-08 10:35:47 +08:00
parent e578c31c28
commit 3007993ad2

View File

@@ -217,7 +217,7 @@ function main(profiles, args, status=null, error=null) {
$('#dateto').valueAsNumber = date.setHours(24 * 7) + date.getTimezoneOffset() * 60 * 1000;
$('#all').dispatchEvent(new Event('change'));
if (Object.hasOwn(args, 'account')) {
if (args['account'] && args['password']) {
let account = new String(args['account']);
let name = account.split('@', 1).pop();
name = name.charAt(0).toLocaleUpperCase() + name.slice(1);