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

update image sizes

This commit is contained in:
Luke Pulverenti 2015-05-12 09:58:03 -04:00
parent 589ad2de70
commit 16f30944f8
7 changed files with 260 additions and 51 deletions

View file

@ -1373,7 +1373,7 @@ var Dashboard = {
return quality;
},
normalizeImageOptions: function(options) {
normalizeImageOptions: function (options) {
if (AppInfo.hasLowImageBandwidth) {
@ -1421,45 +1421,22 @@ var Dashboard = {
if (Dashboard.isRunningInCordova()) {
if ($.browser.safari) {
appName = "iOS";
if ($.browser.iphone) {
deviceName = 'iPhone';
} else if ($.browser.ipad) {
deviceName = 'iPad';
}
} else {
appName = "Android";
}
deviceName = store.getItem('cordovaDeviceName');
deviceId = store.getItem('cordovaDeviceId');
}
deviceName = deviceName || generateDeviceName();
// Cordova
//if (window.device) {
var seed = [];
var keyName = 'randomId';
// deviceName = device.model;
// deviceId = device.uuid;
//}
//else
{
var seed = [];
var keyName = 'randomId';
if (Dashboard.isRunningInCordova()) {
seed.push('cordova');
keyName = 'cordovaDeviceId';
}
deviceId = MediaBrowser.generateDeviceId(keyName, seed.join(','));
if (Dashboard.isRunningInCordova()) {
seed.push('cordova');
keyName = 'cordovaDeviceId';
}
deviceId = deviceId || MediaBrowser.generateDeviceId(keyName, seed.join(','));
return {
appName: appName,
appVersion: appVersion,
@ -1468,8 +1445,8 @@ var Dashboard = {
};
},
loadSwipebox: function() {
loadSwipebox: function () {
var deferred = DeferredBuilder.Deferred();
require([