aboutsummaryrefslogtreecommitdiff
path: root/web/script/dangerbutton.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web/script/dangerbutton.ts')
-rw-r--r--web/script/dangerbutton.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/web/script/dangerbutton.ts b/web/script/dangerbutton.ts
deleted file mode 100644
index b33b3dc..0000000
--- a/web/script/dangerbutton.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-/*
- This file is part of jellything (https://codeberg.org/metamuffin/jellything)
- which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
- Copyright (C) 2026 metamuffin <metamuffin.org>
-*/
-globalThis.addEventListener("DOMContentLoaded", () => {
- document.querySelectorAll("input.danger").forEach(el => {
- el.addEventListener("click", ev => {
- if (!confirm(`Really ${(el as HTMLInputElement).value}?`)) {
- ev.preventDefault()
- }
- })
- })
-})