mirror of
https://github.com/zotero/zotero.git
synced 2026-09-21 00:22:44 +00:00
Populate PDF reader tab title immediately
This commit is contained in:
parent
17abf87bcf
commit
3aa79f40d7
1 changed files with 1 additions and 1 deletions
|
|
@ -46,9 +46,9 @@ class ReaderInstance {
|
|||
return false;
|
||||
}
|
||||
this._itemID = item.id;
|
||||
this.updateTitle();
|
||||
let path = await item.getFilePathAsync();
|
||||
let buf = await OS.File.read(path, {});
|
||||
this.updateTitle();
|
||||
buf = new Uint8Array(buf).buffer;
|
||||
let annotationItems = item.getAnnotations();
|
||||
let annotations = (await Promise.all(annotationItems.map(x => this._getAnnotation(x)))).filter(x => x);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue