From 0ea2a5c5df974205d8505bbe501f8bdf3871a334 Mon Sep 17 00:00:00 2001 From: CameronEYDS <53542131+cameron-eyds@users.noreply.github.com> Date: Wed, 18 Dec 2024 06:48:25 -0800 Subject: [PATCH] Fixed Accessor for Ld Flag Init (#2090) --- ppr-ui/src/plugins/init.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ppr-ui/src/plugins/init.ts b/ppr-ui/src/plugins/init.ts index 0df17109c..8d189e552 100644 --- a/ppr-ui/src/plugins/init.ts +++ b/ppr-ui/src/plugins/init.ts @@ -6,7 +6,7 @@ import { initLdClient, setAllFlagDefaults } from '@/utils' export default defineNuxtPlugin(async (nuxtApp) => { // initialize Launch Darkly - if ((window as any).ldClientId) { + if (useRuntimeConfig().public.VUE_APP_PPR_LD_CLIENT_ID) { console.info('Initializing Launch Darkly...') await initLdClient() } @@ -17,12 +17,6 @@ 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)