Update: 更新WebSocket模式

This commit is contained in:
王立帮
2024-12-01 14:44:49 +08:00
parent 134f2c99ae
commit 9bbd0e6720
13 changed files with 611 additions and 520 deletions

View File

@@ -11,10 +11,10 @@ for (let key in console) {
continue;
}
Debug[key] = (...args) => {
if (!SOFTWARE.debug) {
console.log(`[${key.toUpperCase()}]`, ...args);
} else {
if (SOFTWARE.debug) {
console[key](...args);
} else {
console.log(`[${key.toUpperCase()}]`, ...args);
}
}
}