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

update ffmpeg

This commit is contained in:
Luke Pulverenti 2016-04-02 00:16:18 -04:00
parent 37e35b51d2
commit 90f0116bf8
3 changed files with 37 additions and 16 deletions

View file

@ -3127,7 +3127,7 @@ var AppInfo = {};
if (browserInfo.safari) {
postInitDependencies.push('cordova/connectsdk/connectsdk');
postInitDependencies.push('cordova/ios/chromecast');
postInitDependencies.push('cordova/ios/orientation');
@ -3170,22 +3170,31 @@ var AppInfo = {};
cordova.getAppVersion.getVersionNumber(function (appVersion) {
var name = browserInfo.android ? "Emby for Android Mobile" : (browserInfo.safari ? "Emby for iOS" : "Emby Mobile");
require(['appStorage'], function (appStorage) {
// Remove special characters
var cleanDeviceName = device.model.replace(/[^\w\s]/gi, '');
var name = browserInfo.android ? "Emby for Android Mobile" : (browserInfo.safari ? "Emby for iOS" : "Emby Mobile");
var deviceId = null;
// Remove special characters
var cleanDeviceName = device.model.replace(/[^\w\s]/gi, '');
if (window.MainActivity) {
deviceId = MainActivity.getLegacyDeviceId();
}
var deviceId = null;
resolve({
deviceId: deviceId || device.uuid,
deviceName: cleanDeviceName,
appName: name,
appVersion: appVersion
if (window.MainActivity) {
deviceId = appStorage.getItem('legacyDeviceId');
if (!deviceId) {
deviceId = MainActivity.getLegacyDeviceId();
appStorage.setItem('legacyDeviceId', deviceId);
}
}
resolve({
deviceId: deviceId || device.uuid,
deviceName: cleanDeviceName,
appName: name,
appVersion: appVersion
});
});
});