~lattis/meson-playground

0bc8c1ef57f41491187618e16805f9c58a5ff3a0 — Stone Tickle 1 year, 6 days ago 3ec6b22
allow output to be empty
1 files changed, 4 insertions(+), 6 deletions(-)

M main.js
M main.js => main.js +4 -6
@@ 86,7 86,6 @@ function muonRun(arguments, output) {
        if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
        if (element) {
          element.value += text + "\n";
          element.scrollTop = element.scrollHeight; // focus on bottom
        }
      };
    })(),


@@ 118,11 117,7 @@ function muonRun(arguments, output) {
      }
    })(),
  }).then((instance) => {
    var element = document.getElementById('output');
    element.value = '';
    if (element.value == '') {
      element.value = 'no errors';
    }
    // no-op
  });
}



@@ 165,6 160,9 @@ textarea.addEventListener('input', event => { textChanged(event.target); });
    muonLintExtraArgs = params.args.split(" ");
  }

  // clear cache
  document.getElementById('output').value = '';

  textChanged(element);

  var lineNo = 0;