diff --git a/src/client/FlagsClient.ts b/src/client/FlagsClient.ts index 2255eb6..0a4da78 100644 --- a/src/client/FlagsClient.ts +++ b/src/client/FlagsClient.ts @@ -68,7 +68,8 @@ class FlagsClient { try { const json = await response.json(); - this.flags = json.features; + // support unleash service (features) or unleash proxy responses (toggles) + this.flags = json.features || json.toggles; } catch { // no json, return nothing this.flags = [];