We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 105b735 commit 72a9b94Copy full SHA for 72a9b94
tests/integration/browser.worker.js
@@ -17,12 +17,12 @@ describe.skip('browser.worker.js', function () {
17
before(function () {
18
worker = new Worker('worker.js');
19
20
- var sourceFile = window && window.location.search.match(/[?&]sourceFile=([^&]+)/);
+ let sourceFile = window && new URLSearchParams(window.location.search).get('sourceFile');
21
22
if (!sourceFile) {
23
sourceFile = '../../packages/node_modules/pouchdb/dist/pouchdb.js';
24
} else {
25
- sourceFile = '../../packages/node_modules/pouchdb/dist/' + sourceFile[1];
+ sourceFile = '../../packages/node_modules/pouchdb/dist/' + sourceFile;
26
}
27
28
worker.postMessage(['source', sourceFile]);
0 commit comments