From ec6b9e5a6e93e494432c470d295d75bb5e459b5a Mon Sep 17 00:00:00 2001 From: jess2937 Date: Fri, 22 May 2026 11:10:59 +0530 Subject: [PATCH] feat: add confirmation dialog before clearing history and favorites --- frontend/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 5137f3b..0139106 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3224,7 +3224,7 @@

Quality Score

} document.getElementById('clearHistoryBtn').addEventListener('click', () => { - if (!confirm('Clear all history? This cannot be undone.')) return; + if (!window.confirm('Are you sure you want to clear your history? This cannot be undone.')) return; history = []; localStorage.removeItem('qyx_history'); @@ -3281,7 +3281,7 @@

Quality Score

} document.getElementById('clearFavsBtn').addEventListener('click', () => { - if (!confirm('Clear all favorites? This cannot be undone.')) return; + if (!window.confirm('Are you sure you want to clear your favorites? This cannot be undone.')) return; favorites = []; localStorage.removeItem('qyx_favorites');