mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update startup dependencies
This commit is contained in:
parent
5200b37787
commit
96eb9ea63a
7 changed files with 34 additions and 33 deletions
|
@ -2219,8 +2219,11 @@ var AppInfo = {};
|
|||
// Remove special characters
|
||||
var cleanDeviceName = device.model.replace(/[^\w\s]/gi, '');
|
||||
|
||||
var deviceId = window.MainActivity ? MainActivity.getLegacyDeviceId() : null;
|
||||
deviceId = deviceId || device.uuid;
|
||||
|
||||
resolve({
|
||||
deviceId: device.uuid,
|
||||
deviceId: deviceId,
|
||||
deviceName: cleanDeviceName,
|
||||
appName: name,
|
||||
appVersion: appVersion
|
||||
|
@ -2277,7 +2280,7 @@ var AppInfo = {};
|
|||
if (deviceId) {
|
||||
onDeviceAdAcquired(deviceId);
|
||||
} else {
|
||||
require(['cryptojs-md5'], function () {
|
||||
require(['cryptojs-sha1'], function () {
|
||||
var keys = [];
|
||||
keys.push(navigator.userAgent);
|
||||
keys.push((navigator.cpuClass || ""));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue