add missing basedflare paths to worker and challenge includes

This commit is contained in:
Thomas Lynch
2023-02-11 14:22:34 +11:00
parent 16767e0a97
commit 4637df4745
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ const powFinished = new Promise((resolve, reject) => {
}
const workers = [];
for (let i = 0; i < workerThreads; i++) {
const argonWorker = new Worker('/js/worker.js');
const argonWorker = new Worker('/.basedflare/js/worker.js');
argonWorker.onmessage = messageHandler;
workers.push(argonWorker);
}

View File

@ -1,4 +1,4 @@
importScripts('/js/argon2.js');
importScripts('/.basedflare/js/argon2.js');
onmessage = async function(e) {
const [userkey, challenge, diff, diffString, argonOpts, id, threads] = e.data;