Skip to content

Commit

Permalink
fix(browser): plugin registration bug introduced in ES6 move
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitjes committed Nov 28, 2017
1 parent 188783d commit cd12d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ plugin.changePassword = changePassword;
plugin.changeUsername = changeUsername;

if (typeof window !== 'undefined' && window.PouchDB) {
window.PouchDB.plugin(exports);
window.PouchDB.plugin(plugin);
}

export default plugin;

0 comments on commit cd12d06

Please sign in to comment.