mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Update
This commit is contained in:
@@ -32,7 +32,9 @@ export const handler: Handlers<Task[]> = {
|
||||
ExitTarget.removeEventListener("close", close_handle);
|
||||
};
|
||||
function sendMessage(mes: TaskServerSocketData) {
|
||||
socket.send(JSON.stringify(mes));
|
||||
if (socket.readyState === socket.OPEN) {
|
||||
socket.send(JSON.stringify(mes));
|
||||
}
|
||||
}
|
||||
socket.onclose = () => {
|
||||
removeListener();
|
||||
|
||||
Reference in New Issue
Block a user