cleanup: wrap console.log calls behind window.DASHCADDY_DEBUG flag

Wrapped 22 console.log calls across 6 files with a debug() helper
that only logs when window.DASHCADDY_DEBUG is true in the browser console.

Files:
- tour-manager.js: 10 calls
- theme-adapter.js: 4 calls
- keyboard-shortcuts.js: 4 calls
- tooltip-definitions.js: 2 calls
- progress-tracker.js: 1 call
- live-events.js: 1 call

console.error and console.warn calls preserved — those indicate
real issues worth seeing in production.
This commit is contained in:
Krystie
2026-05-14 00:48:51 -07:00
parent 8ecae81703
commit 5d404f5733
6 changed files with 42 additions and 22 deletions
+5 -1
View File
@@ -18,6 +18,10 @@
(function(window) {
'use strict';
const debug = (...args) => {
if (window.DASHCADDY_DEBUG) { console.log(...args); }
};
/**
* ProgressTracker class
* Manages persistent storage of onboarding progress
@@ -308,6 +312,6 @@
// Export to global scope
window.ProgressTracker = ProgressTracker;
console.log('[ProgressTracker] Module loaded');
debug('[ProgressTracker] Module loaded');
})(window);