Skip to content

Commit

Permalink
Fix import PouchDB in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
broerse committed Apr 5, 2020
1 parent 5de2e50 commit f443afd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ A local PouchDB that syncs with a remote CouchDB looks like this:
```javascript
// app/adapters/application.js

import PouchDB from 'pouchdb';
import PouchDB from 'ember-pouch/pouchdb';
import { Adapter } from 'ember-pouch';

let remote = new PouchDB('http://localhost:5984/my_couch');
Expand All @@ -92,7 +92,7 @@ export default class ApplicationAdapter extends Adapter {
You can also turn on debugging:

```javascript
import PouchDB from 'pouchdb';
import PouchDB from 'ember-pouch/pouchdb';

// For v7.0.0 and newer you must first load the 'pouchdb-debug' plugin
// see https://github.com/pouchdb/pouchdb/tree/39ac9a7a1f582cf7a8d91c6bf9caa936632283a6/packages/node_modules/pouchdb-debug
Expand Down Expand Up @@ -427,7 +427,7 @@ With PouchDB, you also get access to a whole host of [PouchDB plugins](http://po

For example, to use the `pouchdb-authentication` plugin like this using `ember-auto-import`:
```javascript
import PouchDB from 'pouchdb';
import PouchDB from 'ember-pouch/pouchdb';
import auth from 'pouchdb-authentication';

PouchDB.plugin(auth);
Expand Down

0 comments on commit f443afd

Please sign in to comment.