mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-23 15:51:25 +00:00
Update WsUtil.js
Fix typo in message
This commit is contained in:
parent
38bd947743
commit
18cf8c960e
@ -15,7 +15,7 @@ import { message } from 'antd';
|
|||||||
*/
|
*/
|
||||||
export function initWs(wsPort = location.port, path = 'do-not-proxy') {
|
export function initWs(wsPort = location.port, path = 'do-not-proxy') {
|
||||||
if(!WebSocket){
|
if(!WebSocket){
|
||||||
throw (new Error('WebSocket is not supportted on this browser'));
|
throw (new Error('WebSocket is not supported on this browser'));
|
||||||
}
|
}
|
||||||
|
|
||||||
const wsClient = new WebSocket(`ws://${location.hostname}:${wsPort}/${path}`);
|
const wsClient = new WebSocket(`ws://${location.hostname}:${wsPort}/${path}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user