This commit is contained in:
parent
73cd1c6538
commit
71eb6a8eb5
|
@ -8,12 +8,8 @@ outputWS.onmessage = function(e) {
|
|||
var data = JSON.parse(e.data);
|
||||
|
||||
if ('run' === data.cmd) {
|
||||
console.log('run: ' + data.cmd);
|
||||
|
||||
$('#output').val($('#output').val() + data.output);
|
||||
} else if ('build' === data.cmd) {
|
||||
console.log('build: ' + data.cmd);
|
||||
|
||||
$('#output').val(data.output);
|
||||
|
||||
if (0 != data.output.length) { // 说明编译有错误输出
|
||||
|
|
Loading…
Reference in New Issue