Call uninit() in close()

This properly unregisters pref observers and flushes the reader's state.
This commit is contained in:
Abe Jellinek 2023-07-05 12:54:43 -04:00 committed by Dan Stillman
parent 0ee54b4a7e
commit 1740e5f1aa

View file

@ -1081,6 +1081,7 @@ class ReaderWindow extends ReaderInstance {
};
close() {
this.uninit();
this._window.close();
this._onClose();
}