9 lines
270 B
JavaScript
9 lines
270 B
JavaScript
function error(message) {
|
|
const errorContainer = document.getElementById("mao-error");
|
|
const errorElement = document.getElementById("mao-error-message");
|
|
|
|
errorElement.innerText = message || "unknown error";
|
|
errorContainer.classList.remove("hidden");
|
|
}
|
|
|