summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/index.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/static/index.js b/static/index.js
index 31099d6..311afc7 100644
--- a/static/index.js
+++ b/static/index.js
@@ -141,9 +141,11 @@ function submitNewItem(string) {
}
}
- socket.emit("new", string);
+ const votes = 1;
- insertItem(0, string);
+ socket.emit("new", votes, string);
+
+ insertItem(votes, string);
}
function upvoteItem(string, incr) {