Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2021-01-23 19:12:18 +01:00
parent 9cdb26f9e9
commit b7a30faf02
1 changed files with 1 additions and 1 deletions

View File

@ -1198,7 +1198,7 @@ module.exports = (_ => {
let ele = BDFDB.DOMUtils.create(`<button class="${BDFDB.DOMUtils.formatClassName(BDFDB.disCN.noticebutton, button.className)}">${contents}</button>`);
ele.addEventListener("click", e => {
if (button.close) notice.close();
if (typeof button.onClick == "function") button.onClick(e, bar);
if (typeof button.onClick == "function") button.onClick(e, notice);
});
notice.appendChild(ele);
}