forked from external-repos/squoosh
Disable Worker termination on dev
This helps inspect the source code without it disappearing right from under your nose in 10 seconds.
This commit is contained in:
@@ -58,9 +58,11 @@ for (const methodName of methodNames) {
|
|||||||
signal.removeEventListener('abort', onAbort);
|
signal.removeEventListener('abort', onAbort);
|
||||||
|
|
||||||
// Start a timer to clear up the worker.
|
// Start a timer to clear up the worker.
|
||||||
this._workerTimeout = setTimeout(() => {
|
if (__PRODUCTION__) {
|
||||||
this._terminateWorker();
|
this._workerTimeout = setTimeout(() => {
|
||||||
}, workerTimeout);
|
this._terminateWorker();
|
||||||
|
}, workerTimeout);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user