From 93143f1ed95a5f31eba4df386157d9f5d268d14b Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Tue, 9 Jul 2024 00:53:41 -0300 Subject: [PATCH] index: Confirm before clearing Cockpit settings --- index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.html b/index.html index e46575183..e0e34a22a 100644 --- a/index.html +++ b/index.html @@ -56,6 +56,10 @@ }); clearSettingsButton.addEventListener('click', async function() { + if (!confirm("Are you sure you want to reset Cockpit settings?")) { + return; + } + localStorage.clear(); // We are also going to clear the cache to ensure a fresh access to all files as well if (caches) {