fix(theme): show toggle on standalone embed shell, not only hub iframe

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-07 12:18:18 +08:00
parent b29c54f126
commit afb191f90a
3 changed files with 2 additions and 8 deletions
-6
View File
@@ -11,12 +11,6 @@
}
function isHubLinked() {
try {
const p = new URLSearchParams(location.search);
if (p.get("embed") === "1") return true;
const ht = p.get("hub_theme");
if (ht === "light" || ht === "dark") return true;
} catch (_) {}
try {
if (window.self !== window.top) return true;
} catch (_) {