From 3139153e8f3949438cf6189503e7cc32d8e07ec1 Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Sun, 24 Apr 2022 18:20:54 +0300 Subject: [PATCH] fix: ie11 runtime --- client-src/utils/createSocketURL.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-src/utils/createSocketURL.js b/client-src/utils/createSocketURL.js index b79d994829..5d8a28ddbd 100644 --- a/client-src/utils/createSocketURL.js +++ b/client-src/utils/createSocketURL.js @@ -5,7 +5,7 @@ function format(objURL) { let protocol = objURL.protocol || ""; - if (protocol && !protocol.endsWith(":")) { + if (protocol && protocol.substr(-1) !== ":") { protocol += ":"; }