From cc433d1189a223a78237c1bfa8eb307776a2e6e7 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 8 Mar 2021 16:41:48 +0100 Subject: [PATCH] Update 0BDFDB.plugin.js --- Library/0BDFDB.plugin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 9137bb644a..de94f59252 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -172,7 +172,7 @@ module.exports = (_ => { name = BDFDB.name; version = BDFDB.version; } - console[type](...[[name && `%c[${name}]`, version && `%c(v${version})`].filter(n => n).join(" "), name && "color: #3a71c1; font-weight: 700;", version && "color: #666; font-weight: 600; font-size: 11px;", [config.strings].flat(10).filter(n => typeof n == "string").join(" ").trim()].filter(n => n)); + console[type](...[[name && `%c[${name}]`, version && `%c(v${version})`].filter(n => n).join(" "), name && "color: #3a71c1; font-weight: 700;", version && "color: #666; font-weight: 600; font-size: 11px;", [config.strings].flat(10).filter(n => n).join(" ").trim()].filter(n => n)); }; BDFDB.LogUtils.log = function (strings, config = {}) { InternalBDFDB.console("log", Object.assign({}, config, {name: typeof config == "string" ? config : config.name, strings})); @@ -213,9 +213,9 @@ module.exports = (_ => { else if (typeof t == "object") clearImmediate(t); } }; - BDFDB.TimeUtils.suppress = function (callback, string, config) {return function (...args) { + BDFDB.TimeUtils.suppress = function (callback, strings, config) {return function (...args) { try {return callback(...args);} - catch (err) {BDFDB.LogUtils.error([string, err], config);} + catch (err) {BDFDB.LogUtils.error([strings, err], config);} }}; BDFDB.LogUtils.log("Loading library");