Skip to content

Commit b0092af

Browse files
committed
Feature: Maintenance mode
Fixes #454
1 parent f62d28f commit b0092af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ export function animate(element, from, to, duration, assign = true) {
521521
(() => {
522522
document.addEventListener("pointerdown", (e) => {
523523
const dialog = document.querySelector("dialog[open]");
524-
if ((dialog?.querySelector('h2').innerText != 'API Offline') && dialog?.hasAttribute("data-open") && !dialog?.contains(e.target)) {
524+
if (dialog && (dialog.getAttribute('data-modal-page') !== 'api-fail') && (dialog.getAttribute('data-modal-page') !== 'maintenance-mode') && dialog.hasAttribute("data-open") && !dialog.contains(e.target)) {
525525
document.addEventListener(
526526
"pointerup",
527527
() => {

0 commit comments

Comments
 (0)