From e7071a0cd238a1582e7ba07a0d2f9780a0fabb67 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Sat, 4 Jul 2026 20:50:06 -0500 Subject: [PATCH] add warning for spacebar users --- src/webpage/localuser.ts | 2 ++ src/webpage/versions.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webpage/localuser.ts b/src/webpage/localuser.ts index 629d81dd..a0ad968c 100644 --- a/src/webpage/localuser.ts +++ b/src/webpage/localuser.ts @@ -50,6 +50,7 @@ import {PromiseLock} from "./utils/promiseLock.js"; import {CDNParams} from "./utils/cdnParams.js"; import {SnowFlake} from "./snowflake.js"; import {trimTrailingSlashes} from "./utils/netUtils.js"; +import {Versions} from "./versions.js"; type traceObj = { micros: number; calls?: (string | traceObj)[]; @@ -294,6 +295,7 @@ class Localuser { if (this.perminfo.user.disableColors === undefined) this.perminfo.user.disableColors = true; this.updateTranslations(); + Versions.makeVersion(this.info.api, "start"); } favorites!: Favorites; readysup = false; diff --git a/src/webpage/versions.ts b/src/webpage/versions.ts index 7ab3ded6..a804c881 100644 --- a/src/webpage/versions.ts +++ b/src/webpage/versions.ts @@ -9,7 +9,6 @@ export class Versions { private static warned = false; private showWarn(text: string) { //TODO enable this once the version endpoint is up and running - return; if (Versions.warned) return; Versions.warned = true; const d = new Dialog(""); @@ -31,6 +30,7 @@ export class Versions { } } static async makeVersion(api: string, place: "regi" | "start"): Promise { + if (!api.includes("spacebar.chat")) return new Versions(); const p = await fetch(api + "/harmony/version"); if (!p.ok) { const v = new Versions();