Skip to content

Commit

Permalink
repair example
Browse files Browse the repository at this point in the history
  • Loading branch information
stockulus committed Sep 15, 2016
1 parent fdba6d2 commit 0bd3188
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,10 @@ export default React.createClass({

if (this.state.syncUrl) {
const remoteDb = new PouchDB(this.state.syncUrl, {ajax: {cache: false}})
this._sync = PouchDB.sync(localDB, remoteDb, {})
.then(result => console.warn('sync Results', result))
.catch(error => console.warn('sync Error', error, error.message, error.stack))
this._sync = PouchDB.sync(localDB, remoteDb, {live: true, retry: true})
.on('error', error => console.error('Sync Error', error))
.on('change', info => console.log('Sync change', info))
.on('paused', info => console.log('Sync paused', info))
}

this._navigator.pop()
Expand Down

0 comments on commit 0bd3188

Please sign in to comment.