maotube/public/helpers.js

9 lines
270 B
JavaScript
Raw Normal View History

2024-02-12 18:37:02 +00:00
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");
}