From 70c1b5b6e4f46d37715c209f09d77fe1c2e90028 Mon Sep 17 00:00:00 2001 From: Sky-High Date: Sun, 10 Sep 2023 21:16:40 +0200 Subject: [PATCH] satisfy eslint --- src/plugins/chromecastPlayer/plugin.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/chromecastPlayer/plugin.js b/src/plugins/chromecastPlayer/plugin.js index 77d0f27c98..732ae4e9da 100644 --- a/src/plugins/chromecastPlayer/plugin.js +++ b/src/plugins/chromecastPlayer/plugin.js @@ -337,6 +337,7 @@ class CastPlayer { * Use the local address (ULA, Unique Local Address) in that case. */ const serverAddress = apiClient.serverAddress(); + // eslint-disable-next-line compat/compat const hostname = (new URL(serverAddress)).hostname; const isLocalhost = hostname === 'localhost' || hostname.startsWith('127.') || hostname === '[::1]'; const serverLocalAddress = isLocalhost ? apiClient.serverInfo().LocalAddress : serverAddress;