Переглянути джерело

Fix parenthesis during INFO and ERR messages in the DOMConsole

Lucas de Souza 4 роки тому
батько
коміт
fefef99c0d
1 змінених файлів з 3 додано та 3 видалено
  1. 3 3
      js/io/domConsole.js

+ 3 - 3
js/io/domConsole.js

@@ -84,7 +84,7 @@ export class DOMConsole {
     }
     const keyCode = event.which;
     if (keyCode === 13 || this.anyKey) {
-      if(this.idleInterval != null) {
+      if (this.idleInterval != null) {
         clearInterval(this.idleInterval);
         this.idleInterval = null;
       }
@@ -186,7 +186,7 @@ export class DOMConsole {
     this.pending_writes.push(0);
     await Utils.sleep(5);
     this.pending_writes.pop();
-    if(this.last_clear >= write_time) {
+    if (this.last_clear >= write_time) {
       return;
     }
     const divClass = this.getClassForType(type);
@@ -195,7 +195,7 @@ export class DOMConsole {
     if (filter)
       textDiv.innerHTML = this.getOutputText(text);
     else
-      textDiv.innerHTML = `<span>${text}</span>)`;
+      textDiv.innerHTML = `<span>${text}</span>`;
     this.termDiv.insertBefore(textDiv, this.inputDiv);
     this.scrollTerm();
   }