From fef7e3eae8b0940b87564477997ff3d7436ae0dd Mon Sep 17 00:00:00 2001 From: James Teow <102231256+jamesteow@users.noreply.github.com> Date: Mon, 23 Oct 2023 16:32:48 -0400 Subject: [PATCH] Update desktop-feature-api.mdx (#511) In Javascript. `NimbusFeatures.myFeature.off` does not work on Desktop. The API call should be `NimbusFeatures.myFeature.offUpdate` as it was changed in this patch: https://phabricator.services.mozilla.com/differential/changeset/?ref=6175315 --- docs/getting-started/engineers/desktop-feature-api.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting-started/engineers/desktop-feature-api.mdx b/docs/getting-started/engineers/desktop-feature-api.mdx index ae6601f5a..14122e2a9 100644 --- a/docs/getting-started/engineers/desktop-feature-api.mdx +++ b/docs/getting-started/engineers/desktop-feature-api.mdx @@ -319,7 +319,7 @@ Stop listening for changes. NimbusFeatures.myFeature.onUpdate(aListener); // Later -NimbusFeatures.myFeature.off(aListener); +NimbusFeatures.myFeature.offUpdate(aListener); ```