From a42c31d6c038af29037e89a7cf16ee6f9c5f1855 Mon Sep 17 00:00:00 2001 From: Sky-High Date: Tue, 8 Aug 2023 22:19:30 +0200 Subject: [PATCH] fix-sonar-and-lint2 --- src/plugins/chromecastPlayer/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/chromecastPlayer/plugin.js b/src/plugins/chromecastPlayer/plugin.js index 7a5e971228..efae979c17 100644 --- a/src/plugins/chromecastPlayer/plugin.js +++ b/src/plugins/chromecastPlayer/plugin.js @@ -340,7 +340,7 @@ class CastPlayer { */ const srvAddress = apiClient.serverAddress(); const prefix = 'http' + ':' + '//'; - const checkLocalhost = srvAddress.startsWith(prefix + 'localhost') || srvAddress.startsWith(prefix + '127.') || srvAddress.startsWith(prefix + '[::1]') + const checkLocalhost = srvAddress.startsWith(prefix + 'localhost') || srvAddress.startsWith(prefix + '127.') || srvAddress.startsWith(prefix + '[::1]'); const srvLocalAddress = checkLocalhost ? apiClient.serverInfo().LocalAddress : srvAddress; message = Object.assign(message, {