mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix lint
This commit is contained in:
parent
8f4e87dd1f
commit
f2c747ce19
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ import { getIncludeCorsCredentials } from '../../scripts/settings/webSettings';
|
||||||
*/
|
*/
|
||||||
function resolveUrl(url) {
|
function resolveUrl(url) {
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
var xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
xhr.open('HEAD', url, true);
|
xhr.open('HEAD', url, true);
|
||||||
xhr.onload = function () {
|
xhr.onload = function () {
|
||||||
resolve(xhr.responseURL || url);
|
resolve(xhr.responseURL || url);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue