Skip to content

Commit a26e7f4

Browse files
author
Jared Hirsch
committed
Bug 1854487 - Correctly bind nimbus callback in ShoppingUtils r=shopping-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D188887
1 parent baf53e6 commit a26e7f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

browser/components/shopping/ShoppingUtils.sys.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ export const ShoppingUtils = {
5555
if (this.initialized) {
5656
return;
5757
}
58+
this.onNimbusUpdate = this.onNimbusUpdate.bind(this);
5859

5960
if (!this.registered) {
60-
lazy.NimbusFeatures.shopping2023.onUpdate(ShoppingUtils.onNimbusUpdate);
61+
lazy.NimbusFeatures.shopping2023.onUpdate(this.onNimbusUpdate);
6162
this._updateNimbusVariables();
6263
this.registered = true;
6364
}

0 commit comments

Comments
 (0)