work to make documentation unified.

This commit is contained in:
Olivier Gagnon
2021-03-12 02:51:56 -05:00
parent a00c253dcb
commit 2ce6ff2041
176 changed files with 1325 additions and 916 deletions
+4 -2
View File
@@ -190,10 +190,12 @@ export class WorkerScript {
log(func: string, txt: string): void {
if(this.shouldLog(func)) {
if(func !== "" && txt !== ""){
if(func && txt){
this.scriptRef.log(`${func}: ${txt}`);
} else if(func) {
this.scriptRef.log(func);
} else {
this.scriptRef.log(func+txt);
this.scriptRef.log(txt);
}
}
}