1
0
Fork 0
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:
Bond-009 2019-08-16 17:41:23 +02:00 committed by GitHub
commit 9177456f64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;