MCPcopy Create free account
hub / github.com/anyehttp/quantumult-x / DoubleLog

Function DoubleLog

task/lccd.js:302–312  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

300
301// 双平台log输出
302function DoubleLog(data) {
303 if ($.isNode()) {
304 if (data) {
305 console.log(`${data}`);
306 $.notifyMsg.push(`${data}`);
307 }
308 } else {
309 console.log(`${data}`);
310 $.notifyMsg.push(`${data}`);
311 }
312}
313
314// DEBUG
315function debug(text, title = 'debug') {

Callers 1

mainFunction · 0.70

Calls 2

isNodeMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected