mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
revert back to 2 thread max again because turns out firefox didnt get better, just tor limits to 1 thread anyway
This commit is contained in:
@ -16,7 +16,7 @@ const powFinished = new Promise((resolve, reject) => {
|
|||||||
const [_userkey, challenge, _signature] = combined.split("#");
|
const [_userkey, challenge, _signature] = combined.split("#");
|
||||||
const start = Date.now();
|
const start = Date.now();
|
||||||
if (window.Worker && crypto.subtle) {
|
if (window.Worker && crypto.subtle) {
|
||||||
const threads = Math.min(4,Math.ceil(window.navigator.hardwareConcurrency/2));
|
const threads = Math.min(2,Math.ceil(window.navigator.hardwareConcurrency/2));
|
||||||
let finished = false;
|
let finished = false;
|
||||||
const messageHandler = (e) => {
|
const messageHandler = (e) => {
|
||||||
if (finished) { return; }
|
if (finished) { return; }
|
||||||
|
Reference in New Issue
Block a user