Skip to content

Commit

Permalink
Use 'live' instead of 'continuous' keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
bean5 committed May 12, 2020
1 parent 9b8ff3d commit 5b54696
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
var cookie;

db.info(function(err, info) {
db.changes({since: info.update_seq, onChange: showTodos, continuous: true});
db.changes({since: info.update_seq, onChange: showTodos, live: true});
});

// We have to create a new todo document and enter it in the database
Expand Down Expand Up @@ -63,11 +63,11 @@
syncDom.setAttribute('data-sync-state', 'syncing');
var remote = new PouchDB(remoteCouch, {headers: {'Cookie': cookie}});
var pushRep = db.replicate.to(remote, {
continuous: true,
live: true,
complete: syncError
});
var pullRep = db.replicate.from(remote, {
continuous: true,
live: true,
complete: syncError
});
}
Expand Down

0 comments on commit 5b54696

Please sign in to comment.