add debug variable

This commit is contained in:
Linus Torvalds 2019-04-06 01:55:42 +08:00
parent a625817cac
commit 69617658af

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);
}
}