From 0cb604f5a8421f5cd4d43bd9a20206a728134dd2 Mon Sep 17 00:00:00 2001 From: fcamblor Date: Fri, 24 Dec 2021 16:06:03 +0100 Subject: [PATCH] #276 initializing RemoteConfig prior to installing routes as we need RemoteConfig singleton to be initialized (even if not completely filled) prior to calling Router.installRoutes() as, for certain routes (search by departments), title requires some RemoteConfig's promise to be issued --- src/vmd-app.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vmd-app.component.ts b/src/vmd-app.component.ts index b69e873b..ad8848e1 100644 --- a/src/vmd-app.component.ts +++ b/src/vmd-app.component.ts @@ -26,12 +26,12 @@ export class VmdAppComponent extends LitElement { smoothscroll.polyfill(); + RemoteConfig.INSTANCE.sync(); + Router.installRoutes((viewTemplateResult) => { this.viewTemplateResult = viewTemplateResult; }) - RemoteConfig.INSTANCE.sync(); - ServiceWorkers.INSTANCE.startup(); }