Update warning of ItemPaneSectionElementBase

fix: #3905
This commit is contained in:
windingwind 2024-04-07 23:21:34 +08:00
parent 13754fe32c
commit 8b30f08db8

View file

@ -54,8 +54,8 @@ class ItemPaneSectionElementBase extends XULElementBase {
connectedCallback() {
super.connectedCallback();
if (!this.render) {
Zotero.warn("Pane section must have method render().");
if (!this.render && !this.asyncRender) {
Zotero.warn("Pane section must have method render or asyncRender.");
}
}