improved unofficial detection

This commit is contained in:
tyow 2026-03-30 14:51:22 -04:00
parent 86d65c72f0
commit e8668a1552

View file

@ -48,7 +48,7 @@ export function MainPanel({ context, isEmbedded = false, className }) {
let ver = 'unofficial'; let ver = 'unofficial';
let hot = false; let hot = false;
let b = loc.hostname.match(/^(.+)\.(strudel)/); let b = loc.hostname.match(/^(.+)\.(strudel)/);
if (/(strudel)/.test(loc.hostname)) { if (/(strudel.cc$)/.test(loc.hostname)) {
// if there's no text before 'strudel', it's warm, otherwise use the text before strudel // if there's no text before 'strudel', it's warm, otherwise use the text before strudel
ver = b ? b[1] : 'warm'; ver = b ? b[1] : 'warm';
} else { } else {