Resolve deviceId promise properly during apphost init

This commit is contained in:
Claus Vium 2019-08-16 16:49:58 +02:00
parent 29c077d2cb
commit 20573a8086

View File

@ -361,7 +361,9 @@ define(["appSettings", "browser", "events", "htmlMediaHelper"], function (appSet
}
deviceName = getDeviceName();
deviceId = getDeviceId();
getDeviceId().then(function (id) {
deviceId = id;
});
},
deviceName: function () {
return window.NativeShell ? window.NativeShell.AppHost.deviceName() : deviceName;