mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Resolve deviceId promise properly during apphost init
This commit is contained in:
parent
29c077d2cb
commit
20573a8086
@ -361,7 +361,9 @@ define(["appSettings", "browser", "events", "htmlMediaHelper"], function (appSet
|
|||||||
}
|
}
|
||||||
|
|
||||||
deviceName = getDeviceName();
|
deviceName = getDeviceName();
|
||||||
deviceId = getDeviceId();
|
getDeviceId().then(function (id) {
|
||||||
|
deviceId = id;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
deviceName: function () {
|
deviceName: function () {
|
||||||
return window.NativeShell ? window.NativeShell.AppHost.deviceName() : deviceName;
|
return window.NativeShell ? window.NativeShell.AppHost.deviceName() : deviceName;
|
||||||
|
Loading…
Reference in New Issue
Block a user