Skip to content

Commit

Permalink
relative URL for webworker
Browse files Browse the repository at this point in the history
  • Loading branch information
petersalomonsen committed Dec 26, 2023
1 parent 927be33 commit 1b27a35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/libgit2_webworker.spec.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
describe('libgit2 webworker', function () {
this.timeout(10000);
it('should receive confirmation that access token was configured in webworker', async () => {
const worker = new Worker('libgit2_webworker.js');
const worker = new Worker(new URL('libgit2_webworker.js', import.meta.url));
const replyPromise = new Promise(resolve =>
worker.onmessage = (msg) => resolve(msg)
);
Expand Down

0 comments on commit 1b27a35

Please sign in to comment.