mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
chore(client/ts): reduce log level for syntax highlight widget
This commit is contained in:
parent
b876f98d69
commit
8e3a75ad57
@ -25,7 +25,7 @@ const HIGHLIGHT_MAX_BLOCK_COUNT = 500;
|
||||
|
||||
const tag = "SyntaxHighlightWidget";
|
||||
const debugLevels = ["error", "warn", "info", "log", "debug"];
|
||||
const debugLevel = debugLevels.indexOf("debug");
|
||||
const debugLevel = debugLevels.indexOf("warn");
|
||||
|
||||
let warn = function (...args: unknown[]) {};
|
||||
if (debugLevel >= debugLevels.indexOf("warn")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user