We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66833d6 commit c352bd0Copy full SHA for c352bd0
src/browser/js/views/todos.js
@@ -45,7 +45,7 @@ let app = {
45
break;
46
}
47
48
- if (!found) this.todos.push(todo);
+ if (!found) self.todos.push(todo);
49
});
50
todoStorage.fetch((err, todos) => {
51
this.todos = todos;
src/server/sockets.js
@@ -8,6 +8,5 @@ exports.init = function(_io) {
8
};
9
10
exports.todoAdded = function(todo) {
11
- console.log(todo);
12
io.emit('todoAdded', todo);
13
0 commit comments