From 6de235ce2f5c7bb80f686bb55675f012fdb78dfe Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Tue, 2 Jul 2024 05:50:02 +0700 Subject: [PATCH] Fix overriding experimentation stopped working --- src/utils/network.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/network.ts b/src/utils/network.ts index 5ce0a36..f316a00 100644 --- a/src/utils/network.ts +++ b/src/utils/network.ts @@ -576,7 +576,7 @@ export function interceptHttpRequests() { const response = await NATIVE_FETCH(request, init); const json = await response.json(); - if (json && json.exp && json.treatments) { + if (json && json.exp && json.exp.treatments) { for (const key in FeatureGates) { json.exp.treatments[key] = FeatureGates[key] }