summaryrefslogtreecommitdiff
path: root/app/bits/assets/error.js
blob: d16ae0b18c0c3987234ddf01ce93390627f782ec (plain)
1
2
3
4
5
6
7
8
9
window.onerror = (event, source, lineno, colno, error) => {
    if (error.message === "FocusTrap: Element must have at least one focusable child.") return;
    if (appLoading) {
        document.getElementById("loadfailure").style.display = "";
    } else {
        document.getElementById("error").style.display = "block";
        document.getElementById("error").innerText = error.stack;
    }
}