mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
Update
This commit is contained in:
4
server/utils.ts
Normal file
4
server/utils.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export function get_ws_host() {
|
||||
const protocol = document.location.protocol === "https:" ? "wss:" : "ws:";
|
||||
return `${protocol}//${document.location.host}`;
|
||||
}
|
||||
Reference in New Issue
Block a user