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:
parent
69daa8a476
commit
9a643e6058
2 changed files with 9 additions and 6 deletions
|
@ -1812,7 +1812,7 @@ var AppInfo = {};
|
|||
}
|
||||
|
||||
function getBowerPath() {
|
||||
|
||||
|
||||
var bowerPath = "bower_components";
|
||||
|
||||
// Put the version into the bower path since we can't easily put a query string param on html imports
|
||||
|
@ -2040,7 +2040,7 @@ var AppInfo = {};
|
|||
}
|
||||
|
||||
function initRequireWithBrowser(browser) {
|
||||
|
||||
|
||||
var bowerPath = getBowerPath();
|
||||
|
||||
var embyWebComponentsBowerPath = bowerPath + '/emby-webcomponents';
|
||||
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue