### Changed

- web worker detection. #44
This commit is contained in:
Yi-Cyuan Chen
2026-07-20 11:07:48 +08:00
parent 801a004b4f
commit 114d18e574
27 changed files with 1555 additions and 1213 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
if (root.JS_MD5_NO_WINDOW) {
WINDOW = false;
}
var WEB_WORKER = !WINDOW && typeof self === 'object';
var WEB_WORKER = typeof WorkerGlobalScope !== 'undefined' && typeof self !== 'undefined' && self instanceof WorkerGlobalScope;
/* istanbul ignore next */
var NODE_JS = !root.JS_MD5_NO_NODE_JS && !WINDOW && typeof process === 'object' && process.versions && process.versions.node;
if (NODE_JS) {