Skip to content

Commit

Permalink
Merge pull request #18472 from calixteman/bug1908939
Browse files Browse the repository at this point in the history
Add the possibility to delete a model (bug 1908939)
  • Loading branch information
calixteman authored Jul 21, 2024
2 parents 0c34efb + b759470 commit 998bc07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/firefoxcom.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,10 @@ class MLManager {
return !!(await this.#enabled?.get(name));
}

deleteModel(service) {
return FirefoxCom.requestAsync("mlDelete", service);
}

guess(data) {
return FirefoxCom.requestAsync("mlGuess", data);
}
Expand Down
4 changes: 4 additions & 0 deletions web/genericcom.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ class MLManager {
return false;
}

async deleteModel(_service) {
return null;
}

async guess() {
return null;
}
Expand Down

0 comments on commit 998bc07

Please sign in to comment.