[fix](trx-frontend-http): defer decode SSE until plugins load
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -5992,7 +5992,13 @@ function connectDecode() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
connectDecode();
|
if (document.readyState === "complete") {
|
||||||
|
connectDecode();
|
||||||
|
} else {
|
||||||
|
window.addEventListener("load", () => {
|
||||||
|
connectDecode();
|
||||||
|
}, { once: true });
|
||||||
|
}
|
||||||
|
|
||||||
// Release PTT on page unload to prevent stuck transmit
|
// Release PTT on page unload to prevent stuck transmit
|
||||||
window.addEventListener("beforeunload", () => {
|
window.addEventListener("beforeunload", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user