Skip to content

Commit

Permalink
Update desktop-feature-api.mdx (#511)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jamesteow authored Oct 23, 2023
1 parent 0b2826f commit fef7e3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/getting-started/engineers/desktop-feature-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ Stop listening for changes.
NimbusFeatures.myFeature.onUpdate(aListener);
// Later
NimbusFeatures.myFeature.off(aListener);
NimbusFeatures.myFeature.offUpdate(aListener);
```

</TabItem>
Expand Down

0 comments on commit fef7e3e

Please sign in to comment.