Fix overriding experimentation stopped working

This commit is contained in:
redphx 2024-07-02 05:50:02 +07:00
parent f027565534
commit 6de235ce2f

View File

@ -576,7 +576,7 @@ export function interceptHttpRequests() {
const response = await NATIVE_FETCH(request, init); const response = await NATIVE_FETCH(request, init);
const json = await response.json(); const json = await response.json();
if (json && json.exp && json.treatments) { if (json && json.exp && json.exp.treatments) {
for (const key in FeatureGates) { for (const key in FeatureGates) {
json.exp.treatments[key] = FeatureGates[key] json.exp.treatments[key] = FeatureGates[key]
} }