mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-01 12:42: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 tag = "SyntaxHighlightWidget";
|
||||||
const debugLevels = ["error", "warn", "info", "log", "debug"];
|
const debugLevels = ["error", "warn", "info", "log", "debug"];
|
||||||
const debugLevel = debugLevels.indexOf("debug");
|
const debugLevel = debugLevels.indexOf("warn");
|
||||||
|
|
||||||
let warn = function (...args: unknown[]) {};
|
let warn = function (...args: unknown[]) {};
|
||||||
if (debugLevel >= debugLevels.indexOf("warn")) {
|
if (debugLevel >= debugLevels.indexOf("warn")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user