mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Load the image-to-text model when opening the pdf viewer in Firefox (bug 1908938)
This commit is contained in:
parent
5b0e15ab18
commit
b71fa727e1
5 changed files with 62 additions and 24 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue