mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -98,7 +98,7 @@ const debug = (
|
||||
const socket = new WebSocket(url);
|
||||
|
||||
socket.onopen = () => {
|
||||
socket.send(`{"tag":"${sourceUrl}", "key":"${searchKey}"}`);
|
||||
socket.send(JSON.stringify({ tag: sourceUrl, key: searchKey }));
|
||||
};
|
||||
socket.onmessage = ({ data }) => onReceive(data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user