From 8b30f08db8a7c9e2e22af46544d6dbb93fe26f3b Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Sun, 7 Apr 2024 23:21:34 +0800 Subject: [PATCH] Update warning of ItemPaneSectionElementBase fix: #3905 --- chrome/content/zotero/elements/itemPaneSection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/elements/itemPaneSection.js b/chrome/content/zotero/elements/itemPaneSection.js index 74270214e5..b9548c25d1 100644 --- a/chrome/content/zotero/elements/itemPaneSection.js +++ b/chrome/content/zotero/elements/itemPaneSection.js @@ -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."); } }