Merge branch 'nestoralonso-patch-1'

This commit is contained in:
xiaofeng.mxf 2020-01-01 16:21:42 +08:00
commit c9dea0cffd

View File

@ -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}`);