mirror of
https://github.com/zotero/zotero.git
synced 2026-10-04 02:31:47 +00:00
Catch BlockingObserver error when reader is closed immediately
https://forums.zotero.org/discussion/125841/cannot-open-a-pdf-file-in-a-new-tab
This commit is contained in:
parent
2c7475a5e6
commit
cc3fc42b0a
1 changed files with 7 additions and 1 deletions
|
|
@ -187,7 +187,13 @@ class ReaderInstance {
|
|||
return uri.scheme === 'http' || uri.scheme === 'https';
|
||||
}
|
||||
});
|
||||
this._blockingObserver.register(this._iframe);
|
||||
try {
|
||||
this._blockingObserver.register(this._iframe);
|
||||
}
|
||||
catch {
|
||||
// Reader was closed before it could be initialized
|
||||
// No need to log this
|
||||
}
|
||||
|
||||
// Prepare Fluent data
|
||||
let ftl = [];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue