Fix occasional error when reader is closed immediately

This commit is contained in:
Abe Jellinek 2025-03-19 12:55:02 -04:00
parent 2a31c1977e
commit 01db0bfe86

View file

@ -621,7 +621,7 @@ class ReaderInstance {
this._prefObserverIDs.forEach(id => Zotero.Prefs.unregisterObserver(id));
}
this._flushState();
if (this._blockingObserver) {
if (this._blockingObserver && this._iframe) {
this._blockingObserver.unregister(this._iframe);
}
}