From 20573a8086d2cbcbcd7300671c2c2f8210c4395a Mon Sep 17 00:00:00 2001 From: Claus Vium Date: Fri, 16 Aug 2019 16:49:58 +0200 Subject: [PATCH] Resolve deviceId promise properly during apphost init --- src/components/apphost.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/apphost.js b/src/components/apphost.js index 9f61e83c0a..b7783186c2 100644 --- a/src/components/apphost.js +++ b/src/components/apphost.js @@ -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;