You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copying pouchdb.js (7.2.2), pouchdb.authentication.js (1.1.3) and some code together into a webworker script does not work, PouchDB.logIn() keeps undefined.
I just replaced all "window" with "self" within pouchdb.authentication.js and then it works. In my opinion the root-cause is the following code in src/index.js, but I am not able to build pouchdb.authentication.js for testing.
if (typeof window !== 'undefined' && window.PouchDB) {
window.PouchDB.plugin(plugin);
}
The text was updated successfully, but these errors were encountered:
Copying
pouchdb.js
(7.2.2),pouchdb.authentication.js
(1.1.3) and some code together into a webworker script does not work, PouchDB.logIn() keeps undefined.I just replaced all "window" with "self" within
pouchdb.authentication.js
and then it works. In my opinion the root-cause is the following code insrc/index.js
, but I am not able to buildpouchdb.authentication.js
for testing.The text was updated successfully, but these errors were encountered: