@@ -123,14 +126,18 @@
// Show toast and auto-hide
(function() {
const urlParams = new URLSearchParams(window.location.search);
- if (urlParams.get('success') === 'true') {
+ const debugMode = ;
+
+ if (debugMode || urlParams.get('success') === 'true') {
const toast = document.getElementById('success-toast');
setTimeout(() => toast.classList.add('show'), 10);
setTimeout(hideSuccessToast, 20000);
- // Clean URL
- const cleanUrl = window.location.pathname;
- window.history.replaceState({}, document.title, cleanUrl);
+ // Clean URL (only if not in debug mode)
+ if (!debugMode) {
+ const cleanUrl = window.location.pathname;
+ window.history.replaceState({}, document.title, cleanUrl);
+ }
}
})();