mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-28 16:32:28 +00:00
refactor: migrate console usage to shared loggers
This commit is contained in:
1 parent
52af2082d5
commit
7ae07b1369
54 files changed
+940
-1197
No files matched your search
+2
-3
@@ -1,3 +1,4 @@
|
||||
import { userLogger } from "./utils/logger.js";
|
||||
const NEW_MODE = "new";
|
||||
|
||||
const FALLBACK_CONTEXT = Object.freeze({
|
||||
@@ -87,9 +88,7 @@ export function applyDesignSystemAttributes(root = null) {
|
||||
try {
|
||||
element.setAttribute("data-ds", mode);
|
||||
} catch (error) {
|
||||
if (typeof console !== "undefined" && console && console.warn) {
|
||||
console.warn("[design-system] Failed to set data-ds attribute:", error);
|
||||
}
|
||||
userLogger.warn("[design-system] Failed to set data-ds attribute:", error);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user