mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
normalize url
This commit is contained in:
parent
723d7e4485
commit
5f45adbf56
1 changed files with 3 additions and 0 deletions
|
@ -964,6 +964,9 @@
|
||||||
|
|
||||||
function normalizeAddress(address) {
|
function normalizeAddress(address) {
|
||||||
|
|
||||||
|
// attempt to correct bad input
|
||||||
|
address = address.trim();
|
||||||
|
|
||||||
if (address.toLowerCase().indexOf('http') != 0) {
|
if (address.toLowerCase().indexOf('http') != 0) {
|
||||||
address = "http://" + address;
|
address = "http://" + address;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue