Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(urls): respect DB prefix for base URL if set
If [PouchDB.defaults][1] is used, its options are attached to `__.opts`. In the case of `PouchDB.defaults({prefix: ''})`: > `prefix` appends a prefix to the database name and can be helpful for > URL-based or file-based LevelDOWN path names. For example: `{prefix: 'https://example.com/', name: 'test'}` would produce a DB "name" of `https://example.com/test`. Before, prefix was not respected. Closes pouchdb-community#158. Connects pouchdb-community#160. [1]: https://pouchdb.com/api.html#defaults
- Loading branch information