chore: remove leftover console.log statements
Removed informational and debug console.log statements from src/index.js, src/actions.js, and src/ui_helpers.js to improve code health and user experience. Refactored src/index.js to avoid empty blocks. Co-authored-by: TauNeutrino <1600410+TauNeutrino@users.noreply.github.com>
This commit is contained in:
@@ -4,9 +4,7 @@ import { updateAuthUI, cleanupExpiredFlags, loadMenuCache, isCacheFresh, loadMen
|
||||
import { checkForUpdates } from './ui_helpers.js';
|
||||
import { authToken } from './state.js';
|
||||
|
||||
if (window.__KANTINE_LOADED) {
|
||||
console.log("Kantine Wrapper already loaded.");
|
||||
} else {
|
||||
if (!window.__KANTINE_LOADED) {
|
||||
window.__KANTINE_LOADED = true;
|
||||
|
||||
injectUI();
|
||||
@@ -18,10 +16,7 @@ if (window.__KANTINE_LOADED) {
|
||||
if (hadCache) {
|
||||
document.getElementById('loading').classList.add('hidden');
|
||||
if (!isCacheFresh()) {
|
||||
console.log('Cache stale or incomplete – refreshing from API');
|
||||
loadMenuDataFromAPI();
|
||||
} else {
|
||||
console.log('Cache fresh & complete – skipping API refresh');
|
||||
}
|
||||
} else {
|
||||
loadMenuDataFromAPI();
|
||||
@@ -33,6 +28,4 @@ if (window.__KANTINE_LOADED) {
|
||||
|
||||
checkForUpdates();
|
||||
setInterval(checkForUpdates, 60 * 60 * 1000);
|
||||
|
||||
console.log('Kantine Wrapper loaded ✅');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user