diff --git a/ppr-ui/src/plugins/init.ts b/ppr-ui/src/plugins/init.ts index 614eeb856..0df17109c 100644 --- a/ppr-ui/src/plugins/init.ts +++ b/ppr-ui/src/plugins/init.ts @@ -17,6 +17,12 @@ export default defineNuxtPlugin(async (nuxtApp) => { // Set all feature flags to true setAllFlagDefaults(true) } + + // initialize Launch Darkly + if ((window as any).ldClientId) { + console.info('Initializing Launch Darkly...') + await initLdClient() + } nuxtApp.vueApp.use(Vuelidate) nuxtApp.vueApp.use(tabFocus)