mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-04 20:02:26 +00:00
Revert "Refactor logging to centralized logger"
This commit is contained in:
1 parent
2e7038e0e6
commit
d705cf176b
67 files changed
+798
-1130
No files matched your search
@@ -17,15 +17,6 @@
|
||||
|
||||
<script>
|
||||
(async () => {
|
||||
const fallbackChannel = {
|
||||
error: () => {},
|
||||
warn: () => {},
|
||||
info: () => {},
|
||||
log: () => {},
|
||||
};
|
||||
const fallbackLogger = { dev: fallbackChannel, user: fallbackChannel };
|
||||
const bitvidLogger =
|
||||
(typeof window !== "undefined" && window.bitvidLogger) || fallbackLogger;
|
||||
try {
|
||||
// Fetch the Markdown file
|
||||
const response = await fetch("content/getting-started.md");
|
||||
@@ -49,7 +40,7 @@
|
||||
hljs.highlightBlock(block);
|
||||
});
|
||||
} catch (err) {
|
||||
bitvidLogger.user.error("Error loading 'Getting Started' content:", err);
|
||||
console.error("Error loading 'Getting Started' content:", err);
|
||||
const container = document.getElementById("markdown-container");
|
||||
if (container) {
|
||||
container.innerHTML = `
|
||||
|
||||
Reference in new issue
Block a user