From 256d5fb5fea7ee5a6683f77ea347ac79816ad639 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Mon, 25 Apr 2022 01:36:18 +0300 Subject: [PATCH] fix: ie11 runtime (#4403) --- 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 += ":"; }