Load the image-to-text model when opening the pdf viewer in Firefox (bug 1908938)

This commit is contained in:
Calixte Denizet 2024-07-19 17:57:53 +02:00
parent 5b0e15ab18
commit b71fa727e1
5 changed files with 62 additions and 24 deletions

View file

@ -855,8 +855,8 @@ class AnnotationEditorUIManager {
return this.#mlManager?.guess(data) || null;
}
isMLEnabledFor(name) {
return !!this.#mlManager?.isEnabledFor(name);
async isMLEnabledFor(name) {
return !!(await this.#mlManager?.isEnabledFor(name));
}
get useNewAltTextFlow() {