Fix type error

This commit is contained in:
the1812 2025-07-22 23:38:27 +08:00
parent c85fc06e51
commit acac416455

View File

@ -225,7 +225,7 @@ export class LiveSocket extends EventTarget {
if ( if (
this.webSocket && this.webSocket &&
[WebSocket.CONNECTING, WebSocket.OPEN].includes(this.webSocket.readyState) ([WebSocket.CONNECTING, WebSocket.OPEN] as number[]).includes(this.webSocket.readyState)
) { ) {
this.stop() this.stop()
} }