mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-04-27 21:35:40 +00:00
more fixes
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user