From 67749711114e2b6135f0d5b544f1726b7b214f70 Mon Sep 17 00:00:00 2001 From: Jeppe Rune Mortensen Date: Sat, 24 Mar 2018 04:54:03 +0100 Subject: [PATCH] add comment to why settings#ensureLoaded is called --- src/app/bootstrap.inject.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/bootstrap.inject.ts b/src/app/bootstrap.inject.ts index 118a6fc..dd020cc 100644 --- a/src/app/bootstrap.inject.ts +++ b/src/app/bootstrap.inject.ts @@ -190,6 +190,7 @@ const handlePlayerCreate = async (playerFactory: PlayerFactory, playerConfig: Pl let elementId = playerConfig.attrs.id; let playerId = uuidv4(); + // Wait for any blockers e.g. loading of settings. await servicePort.call("settings#ensureLoaded"); // Send a beforecreate event to the core.