mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #414 from jellyfin/fix_deviceid
Resolve deviceId promise properly during apphost init
This commit is contained in:
commit
9177456f64
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue