more fixes

This commit is contained in:
MathMan05
2026-02-03 20:54:51 -06:00
parent 93fbfa66bb
commit 2c05b6bbd0
+4 -1
View File
@@ -41,7 +41,9 @@ export function getBulkUsers() {
try {
const user = (json.users[thing] = new Specialuser(json.users[thing]));
apiDoms.add(new URL(user.serverurls.api).host);
} catch {}
} catch {
delete json.users[thing];
}
}
if (getDeveloperSettings().interceptApiTraces) {
SW.postMessage({
@@ -107,6 +109,7 @@ export class Specialuser {
if (json instanceof Specialuser) {
console.error("specialuser can't construct from another specialuser");
}
if (!json.serverurls) throw new Error("nope");
this.serverurls = json.serverurls;
let apistring = new URL(json.serverurls.api).toString();
apistring = apistring.replace(/\/(v\d+\/?)?$/, "") + "/v9";