Also disable output and tests

This commit is contained in:
Berkeley Martinez
2015-12-03 15:09:52 -08:00
parent 81028fceac
commit b7530253aa
3 changed files with 10 additions and 1 deletions

View File

@@ -11,6 +11,9 @@ window.$(document).ready(function() {
var common = parent.common;
common.getJsOutput = function evalJs(code = '') {
if (window.__err || !common.shouldRun()) {
return window.__err || 'code disabled';
}
let output;
try {
/* eslint-disable no-eval */