mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #18472 from calixteman/bug1908939
Add the possibility to delete a model (bug 1908939)
This commit is contained in:
commit
998bc07375
2 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -52,6 +52,10 @@ class MLManager {
|
|||
return false;
|
||||
}
|
||||
|
||||
async deleteModel(_service) {
|
||||
return null;
|
||||
}
|
||||
|
||||
async guess() {
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue