← Commit history

fix demo script (re.sub newline corruption)

John Lauer ·5e394fb5e1 ·2mo ago ·parent c9f266f
1 file changed +1−2
readme.html+1−2
@@ -331,8 +331,7 @@ curl -s -X POST 127.0.0.1:24680/command \     var AB = "http://127.0.0.1:24680";     var log = document.getElementById("abwc-log"), dot = document.getElementById("abwc-dot"),         note = document.getElementById("abwc-mode-note"), img = document.getElementById("abwc-img");-    function line(m){ log.textContent += "-" + m; log.scrollTop = log.scrollHeight; }+    function line(m){ log.textContent += "\n" + m; log.scrollTop = log.scrollHeight; }     function reset(m){ log.textContent = m; img.style.display = "none"; }     function mode(){ var r = document.querySelector('input[name="abwc-mode"]:checked'); return r ? r.value : "consent"; }     function refreshNote(){