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:
google-labs-jules[bot]
2026-03-10 12:39:59 +00:00
parent adc018d4d3
commit f192de5feb
3 changed files with 1 additions and 33 deletions

View File

@@ -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 ✅');
}