Skip to content

Commit 8931e4c

Browse files
committed
Fix latency issues
1 parent 10e9fd8 commit 8931e4c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

public/javascripts/worker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ socket.on('notify', function (data) {
2626

2727
// Send latest data to server
2828
function processText() {
29+
console.log("Activated");
2930
var x = document.getElementById("text").value;
3031

3132
if (cache = "") {

views/pad.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ html
1111
script(src="/javascripts/worker.js", type="text/javascript")
1212

1313
body
14-
textarea(id="text", autocomplete="off", onchange="processText()", placeholder=temp)
14+
textarea(id="text", autocomplete="off", onkeyup="processText()", placeholder=temp)

0 commit comments

Comments
 (0)