diff --git a/src/ACTListener.ts b/src/ACTListener.ts
index ef91586..5b14b11 100644
--- a/src/ACTListener.ts
+++ b/src/ACTListener.ts
@@ -8,8 +8,8 @@ type Callback = (
type EventData = {
type: "broadcast"
msgtype: "Chat" | "SendCharName"
- msg: string
-}
+ msg: string
+ }
export default function listenToACT(callback: Callback) {
if (!getHost()) return listenOverlayPlugin(callback)
@@ -24,10 +24,6 @@ function listenActWebSocket(callback: Callback) {
const ws = new WebSocket(wsUri)
ws.onerror = () => ws.close()
- ws.onclose = () =>
- setTimeout(() => {
- listenActWebSocket(callback)
- }, 1000)
ws.onmessage = function (e) {
if (e.data === ".") return ws.send(".")
diff --git a/src/index.tsx b/src/index.tsx
index a984b65..7421584 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -1,6 +1,7 @@
import ReactDOM from "react-dom/client"
import App from "./App"
+import { StrictMode } from "react"
const container = document.getElementById("root")
@@ -8,4 +9,8 @@ if (!container) throw new Error("Missing #root element")
const root = ReactDOM.createRoot(container)
-root.render()
+root.render(
+
+
+ ,
+)