Support for extra UI in the popup's message box.
This commit is contained in:
parent
997e305240
commit
626c1ca10f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue