diff --git a/static/js/chat.js b/static/js/chat.js index 1344b6a..1b733b3 100644 --- a/static/js/chat.js +++ b/static/js/chat.js @@ -1,6 +1,6 @@ // ---- 动态主题色 bootstrap(spec §3):?color= → 派生 → :root 变量 ---- (function () { - if (typeof ChatTheme === "undefined") return; // theme.js 加载失败→style.css :root 默认橙兜底 + if (typeof ChatTheme === "undefined") return; // theme.js 加载失败→style.css :root 品牌蓝兜底 var m = /(?:^|[?&])color=([^&]*)/.exec(location.search); function safeDecode(s) { try { return decodeURIComponent(s); } catch (e) { return ""; } } var color = m ? safeDecode(m[1]).trim() : "";