feat(ui): add runtime logger and replace console usage

This commit is contained in:
Shantur Rathore
2025-12-05 15:07:49 +00:00
parent 49143bd049
commit 971abe24d7
44 changed files with 406 additions and 138 deletions

View File

@@ -19,7 +19,8 @@
try {
document.documentElement.setAttribute('data-theme', 'dark')
} catch (error) {
console.warn('Failed to apply initial theme', error)
const rawConsole = globalThis?.["console"]
rawConsole?.warn?.('Failed to apply initial theme', error)
}
})()
</script>

View File

@@ -9,7 +9,8 @@
try {
document.documentElement.setAttribute('data-theme', 'dark')
} catch (error) {
console.warn('Failed to apply initial theme', error)
const rawConsole = globalThis?.["console"]
rawConsole?.warn?.('Failed to apply initial theme', error)
}
})()
</script>