Skip to content

Commit

Permalink
Fixed Accessor for Ld Flag Init (#2090)
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-eyds authored Dec 18, 2024
1 parent c8e9a76 commit 0ea2a5c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ppr-ui/src/plugins/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand All @@ -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)
Expand Down

0 comments on commit 0ea2a5c

Please sign in to comment.