1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix-sonar-and-lint2

This commit is contained in:
Sky-High 2023-08-08 22:19:30 +02:00
parent 7746795730
commit a42c31d6c0

View file

@ -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, {