refactor: fix worker-relay for external users

This commit is contained in:
2024-03-04 12:22:48 +00:00
parent a0aa86a0b3
commit 226618ac77
26 changed files with 362 additions and 68 deletions

View File

@ -0,0 +1,10 @@
let debug = false;
export function debugLog(scope: string, msg: string, ...args: Array<any>) {
if (!debug) return;
console.log(scope, msg, ...args);
}
export function setLogging(v: boolean) {
debug = v;
}