add debug variable

This commit is contained in:
giongto35 2019-04-06 01:55:42 +08:00
parent 44f38bc34f
commit 12ef50b723

View file

@ -27,10 +27,13 @@ textarea {
<script>
// miscs
DEBUG = true;
let log = msg => {
document.getElementById('div').innerHTML += msg + '<br>'
console.log(msg);
if (DEBUG) {
document.getElementById('div').innerHTML += msg + '<br>'
console.log(msg);
}
}