mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 21:17:20 +03:00
Add time to log messages
This commit is contained in:
@@ -4,9 +4,9 @@ window["SBLogs"] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export function logDebug(message: string) {
|
export function logDebug(message: string) {
|
||||||
window["SBLogs"].debug.push(message);
|
window["SBLogs"].debug.push(`[${new Date().toISOString()}] ${message}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function logWarn(message: string) {
|
export function logWarn(message: string) {
|
||||||
window["SBLogs"].warn.push(message);
|
window["SBLogs"].warn.push(`[${new Date().toISOString()}] ${message}`);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user