Update WsUtil.js

Fix typo in message
This commit is contained in:
nestoralonso 2019-10-07 09:34:51 -05:00 committed by GitHub
parent 65f530047a
commit 0927d98222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ import { message } from 'antd';
*/
export function initWs(wsPort = location.port, path = 'do-not-proxy') {
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}`);