mirror of
https://github.com/gchq/CyberChef
synced 2025-12-11 05:43:28 +00:00
Improve queueing for getDish... messages.
Force wheel event to be not passive. Change maxworkers to be navigator.hardwareConcurrency - 1
This commit is contained in:
@@ -49,9 +49,14 @@ class InputWaiter {
|
||||
this.loaderWorkers = [];
|
||||
this.workerId = 0;
|
||||
this.maxTabs = this.manager.tabs.calcMaxTabs();
|
||||
this.maxWorkers = navigator.hardwareConcurrency || 4;
|
||||
this.callbacks = {};
|
||||
this.callbackID = 0;
|
||||
|
||||
this.maxWorkers = 1;
|
||||
if (navigator.hardwareConcurrency !== undefined &&
|
||||
navigator.hardwareConcurrency > 1) {
|
||||
this.maxWorkers = navigator.hardwareConcurrency - 1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user