UNPKG

@braze/web-sdk

Version:

Braze SDK for web sites and other JS platforms.

13 lines (12 loc) 378 B
import r from "../managers/braze-instance.js"; import lr from "./feature-flags-provider-factory.js"; import { getAllFeatureFlags } from "./get-all-feature-flags.js"; export function subscribeToFeatureFlagsUpdates(t) { if (!r.rr()) return; const e = lr.o(); if (e.So()) { const r = getAllFeatureFlags(); r && "function" == typeof t && t(r); } return e.zt(t); }