reduce frontend log spam from debug messages

This commit is contained in:
Hazelnoot 2025-05-10 13:20:44 -04:00
parent f42f9ee0b5
commit 87dc73d700
22 changed files with 32 additions and 32 deletions

View file

@ -52,7 +52,7 @@ async function fetchLanguage(to: string): Promise<void> {
return bundle.id === language || bundle.aliases?.includes(language);
});
if (bundles.length > 0) {
if (_DEV_) console.log(`Loading language: ${language}`);
if (_DEV_) console.debug(`Loading language: ${language}`);
await highlighter.loadLanguage(bundles[0].import);
codeLang.value = language;
} else {