Suppress noisy "dead object" error after each click inside reader tab

This commit is contained in:
Martynas Bagdonas 2023-08-07 16:51:15 +03:00 committed by Dan Stillman
parent a167b6932b
commit 07e4d68760

View file

@ -1051,7 +1051,10 @@ class ReaderTab extends ReaderInstance {
}
}
catch (e) {
Zotero.logError(e);
// TODO: Find a better solution for this or the whole method
if (!e.message.includes("can't access dead object")) {
Zotero.logError(e);
}
}
};