From 4c7f75fbcfcfd8910e741cced7f4887f32fc0534 Mon Sep 17 00:00:00 2001 From: Tony Arcangelini <33258733+arcangelini@users.noreply.github.com> Date: Mon, 11 Nov 2024 11:50:37 -0600 Subject: [PATCH] Help Center: second attempt feature flag (#96249) --- apps/help-center/config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/help-center/config.js b/apps/help-center/config.js index 592ce506d03cb..0e3af36b25f36 100644 --- a/apps/help-center/config.js +++ b/apps/help-center/config.js @@ -5,13 +5,15 @@ import { } from '@automattic/zendesk-client/src/constants'; const isProxied = typeof helpCenterData !== 'undefined' && helpCenterData?.isProxied; +const flags = new URLSearchParams( window.location.search ).get( 'flags' ); +const isHelpCenterExperienceEnabled = flags?.includes( 'help-center-experience' ) ?? false; window.configData = { env_id: isProxied ? 'staging' : 'production', zendesk_support_chat_key: isProxied ? ZENDESK_STAGING_SUPPORT_CHAT_KEY : ZENDESK_SUPPORT_CHAT_KEY, features: { 'help/gpt-response': true, - 'help-center-experience': false, + 'help-center-experience': isHelpCenterExperienceEnabled, }, wapuu: false, };