widget final

This commit is contained in:
Alex
2023-09-12 17:36:41 +01:00
parent 7f7856f0e4
commit 45f1bf6709
6 changed files with 13 additions and 12 deletions

View File

@@ -688,10 +688,7 @@ function dr({
});
}
const pr = ({ apiHost: D = "https://gptcloud.arc53.com", selectDocs: w = "default", apiKey: C = "docsgpt-public" }) => {
const [u, E] = ke(
() => localStorage.getItem("docsGPTChatState") || "init"
/* Init */
), [S, T] = ke(""), b = ur(null);
const [u, E] = ke(() => typeof window < "u" && localStorage.getItem("docsGPTChatState") || "init"), [S, T] = ke(""), b = ur(null);
Pe(() => {
if (b.current) {
const v = b.current;