MCPcopy
hub / github.com/theajack/disable-devtool / initLogs

Function initLogs

src/utils/log.ts:26–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24let clear: () => void;
25
26export function initLogs () {
27 if (IS.ie) {
28 // ie 不支持缓存使用 log等方法
29 log = (...args: any[]) => {return console.log(...args);};
30 table = (...args: any[]) => {return console.table(...args);};
31 clear = () => {return console.clear();};
32 } else {
33 log = console.log;
34 table = console.table;
35 clear = console.clear;
36 }
37}
38
39export function clearLog () {
40 if (config.clearLog)

Callers 1

main.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected