From 4637df474554f8341615182a355c2b6fb9c99df4 Mon Sep 17 00:00:00 2001 From: Thomas Lynch Date: Sat, 11 Feb 2023 14:22:34 +1100 Subject: [PATCH] add missing basedflare paths to worker and challenge includes --- haproxy/js/challenge.js | 2 +- haproxy/js/worker.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/haproxy/js/challenge.js b/haproxy/js/challenge.js index 36b6ac7..18198fb 100644 --- a/haproxy/js/challenge.js +++ b/haproxy/js/challenge.js @@ -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); } diff --git a/haproxy/js/worker.js b/haproxy/js/worker.js index 1cb163c..8a6fcdc 100644 --- a/haproxy/js/worker.js +++ b/haproxy/js/worker.js @@ -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;