feat(wizard): add floating page bot verification

This commit is contained in:
langbot-dev
2026-08-14 23:58:39 +08:00
parent f2ba540ffb
commit 7a4fadc375
5 changed files with 64 additions and 5 deletions
+8
View File
@@ -1240,6 +1240,14 @@
// Root container
var root = document.createElement("div");
root.id = "langbot-widget-root";
root.langbotDestroy = function () {
wsDisconnect();
if (state.historyReloadTimer) {
clearTimeout(state.historyReloadTimer);
state.historyReloadTimer = null;
}
root.remove();
};
document.body.appendChild(root);
var shadow = root.attachShadow({ mode: "open" });