Support for extra UI in the popup's message box.

This commit is contained in:
hackademix 2022-02-25 10:00:24 +01:00
parent 997e305240
commit 626c1ca10f
1 changed files with 2 additions and 1 deletions

View File

@ -30,10 +30,11 @@ addEventListener("unload", e => {
(async () => {
function showMessage(className, message) {
function showMessage(className, message, extraUI = null) {
let el = document.getElementById("message");
el.textContent = message;
el.className = className;
if (extraUI) el.appendChild(extraUI);
}
try {