In lib/client/core.js, line 33 checks for a valid worker with:
if (!worker || (!worker.postMessage && (!worker.controller || !worker.controller.postMessage))) {
However, in dist/pouchdb.worker-pouch.js, the check is:
if (!worker || !worker.postMessage) {
This means that ServiceWorkers (which rely on controller.postMessage) will be incorrectly marked as invalid. I fixed this by running npm run build so the distributed package is up-to-date
In
lib/client/core.js
, line 33 checks for a valid worker with:However, in
dist/pouchdb.worker-pouch.js
, the check is:This means that ServiceWorkers (which rely on
controller.postMessage
) will be incorrectly marked as invalid. I fixed this by runningnpm run build
so the distributed package is up-to-date