mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-22 16:05:56 +02:00
Add the possibility to delete a model (bug 1908939)
This commit is contained in:
parent
d0b580e79f
commit
b759470ed5
@ -320,6 +320,10 @@ class MLManager {
|
|||||||
return !!(await this.#enabled?.get(name));
|
return !!(await this.#enabled?.get(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deleteModel(service) {
|
||||||
|
return FirefoxCom.requestAsync("mlDelete", service);
|
||||||
|
}
|
||||||
|
|
||||||
guess(data) {
|
guess(data) {
|
||||||
return FirefoxCom.requestAsync("mlGuess", data);
|
return FirefoxCom.requestAsync("mlGuess", data);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,6 +52,10 @@ class MLManager {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async deleteModel(_service) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
async guess() {
|
async guess() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user