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:
parent
7746795730
commit
a42c31d6c0
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ class CastPlayer {
|
||||||
*/
|
*/
|
||||||
const srvAddress = apiClient.serverAddress();
|
const srvAddress = apiClient.serverAddress();
|
||||||
const prefix = 'http' + ':' + '//';
|
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;
|
const srvLocalAddress = checkLocalhost ? apiClient.serverInfo().LocalAddress : srvAddress;
|
||||||
|
|
||||||
message = Object.assign(message, {
|
message = Object.assign(message, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue