提交 eb0f7615 编写于 作者: fxy060608's avatar fxy060608

chore: lint

上级 901f7cb3
......@@ -8,8 +8,7 @@ const ZERO_WIDTH_CHAR = {
backup3: '\uFEFF'
}
if (console) {
function overridedConsole(name, oldFn, char) {
function overridedConsole (name, oldFn, char) {
console[name] = function (...args) {
oldFn.apply(this, args.map(arg => {
let item
......@@ -22,7 +21,8 @@ if (console) {
return item
}))
}
}
}
if (typeof console !== 'undefined') {
overridedConsole('warn', console.warn, ZERO_WIDTH_CHAR.WARNING)
// overridedConsole('error', console.error, ZERO_WIDTH_CHAR.ERROR)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册