From d92f74f87712439c15324f616ca51b8fdb4de824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20Oliver=20S=C3=BCnderhauf?= <46800703+bosue@users.noreply.github.com> Date: Sat, 28 Oct 2023 13:42:39 +0200 Subject: [PATCH] chore: Fix codestyle to satisfy linter, and typo. (#22954) --- realtime/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/realtime/utils.js b/realtime/utils.js index 85df2f9157..89bb00c98e 100644 --- a/realtime/utils.js +++ b/realtime/utils.js @@ -7,11 +7,11 @@ function get_url(socket, path) { } let url = socket.request.headers.origin; if (conf.developer_mode) { - let [protocal, host, port] = url.split(':'); + let [protocol, host, port] = url.split(":"); if (port != conf.webserver_port) { port = conf.webserver_port; } - url = `${protocal}:${host}:${port}`; + url = `${protocol}:${host}:${port}`; } return url + path; }