Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(app): widget proxy follows the host theme with a transparent canvas

oxoxDev1556c67e8f9f
diff --git a/crates/openhuman-app/assets/widget-proxy.html b/crates/openhuman-app/assets/widget-proxy.html
index 608ec9fff6..9f5a6df099 100644
--- a/crates/openhuman-app/assets/widget-proxy.html
+++ b/crates/openhuman-app/assets/widget-proxy.html
@@ -29,6 +29,9 @@
var host = window.parent;
if (!host || host === window) return;
var inner = null;
+ var theme = new URLSearchParams(location.search).get("theme");
+ if (theme !== "light" && theme !== "dark") theme = "";
+ if (theme) document.documentElement.style.colorScheme = theme;
function isRpc(data) {
return (
@@ -44,6 +47,8 @@
inner.setAttribute("sandbox", "allow-scripts allow-forms");
inner.setAttribute("referrerpolicy", "no-referrer");
inner.setAttribute("title", "widget");
+ inner.setAttribute("allowtransparency", "true");
+ if (theme) inner.style.colorScheme = theme;
inner.srcdoc = html;
document.body.appendChild(inner);
}