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

update android init

This commit is contained in:
Luke Pulverenti 2016-02-05 12:04:38 -05:00
parent 69daa8a476
commit 9a643e6058
2 changed files with 9 additions and 6 deletions

View file

@ -47,7 +47,7 @@
function updateDeviceProfileForAndroid(profile) {
// Just here as an easy escape out, if ever needed
var enableVlcVideo = true;
var enableVlcVideo = window.VlcAudio;
var enableVlcAudio = true;
if (enableVlcVideo) {

View file

@ -2368,11 +2368,14 @@ var AppInfo = {};
// Remove special characters
var cleanDeviceName = device.model.replace(/[^\w\s]/gi, '');
var deviceId = window.MainActivity ? MainActivity.getLegacyDeviceId() : null;
deviceId = deviceId || device.uuid;
var deviceId = null;
if (window.MainActivity) {
deviceId = MainActivity.getLegacyDeviceId();
}
resolve({
deviceId: deviceId,
deviceId: deviceId || device.uuid,
deviceName: cleanDeviceName,
appName: name,
appVersion: appVersion