mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 16: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
+3
-4
@@ -1,4 +1,3 @@
|
||||
import { userLogger } from "./utils/logger.js";
|
||||
const NEW_MODE = "new";
|
||||
|
||||
const FALLBACK_CONTEXT = Object.freeze({
|
||||
@@ -88,8 +87,8 @@ export function applyDesignSystemAttributes(root = null) {
|
||||
try {
|
||||
element.setAttribute("data-ds", mode);
|
||||
} catch (error) {
|
||||
if (typeof console !== "undefined" && console && userLogger.warn) {
|
||||
userLogger.warn("[design-system] Failed to set data-ds attribute:", error);
|
||||
if (typeof console !== "undefined" && console && console.warn) {
|
||||
console.warn("[design-system] Failed to set data-ds attribute:", error);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -100,4 +99,4 @@ export function applyDesignSystemAttributes(root = null) {
|
||||
export function subscribeToDesignSystemChanges(listener) {
|
||||
void listener;
|
||||
return () => {};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user