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

fixes #941 - Rework password recovery and remove IsLocal checks

This commit is contained in:
Luke Pulverenti 2014-11-08 22:18:14 -05:00
parent 0adfd30015
commit 7f6f74fb54
11 changed files with 263 additions and 40 deletions

View file

@ -2285,15 +2285,6 @@
});
};
var supportsWebP = false;
self.supportsWebP = function (val) {
if (val != null) {
supportsWebP = val;
}
return supportsWebP;
};
function normalizeImageOptions(options) {
var ratio = devicePixelRatio || 1;
@ -2319,10 +2310,6 @@
}
options.quality = options.quality || (options.type.toLowerCase() == 'backdrop' ? 80 : 90);
if (self.supportsWebP()) {
options.format = 'webp';
}
}
/**
@ -2396,10 +2383,6 @@
delete options.type;
delete options.index;
if (self.supportsWebP()) {
options.format = 'webp';
}
return self.getUrl(url, options);
};