Skip to content

Commit 633ee9d

Browse files
Use the new cause-based unenrollment API
The `ExperimentManager.unenroll()` API changed in Firefox 139 (see-also [1]), which now takes a more well-defined object instead of a grab bag of properties. Fixes #91 [1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1955169
1 parent 4db3d3b commit 633ee9d

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/apis/nimbus.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,9 @@ var nimbus = class extends ExtensionAPI {
340340

341341
async unenroll(slug) {
342342
try {
343-
return await lazy.ExperimentManager.unenroll(
344-
slug,
345-
"nimbus-devtools",
346-
);
343+
return await lazy.ExperimentManager.unenroll(slug, {
344+
reason: "nimbus-devtools",
345+
});
347346
} catch (error) {
348347
console.error(error);
349348
throw new ExtensionError(String(error));

0 commit comments

Comments
 (0)