### 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
@@ -24,7 +24,7 @@ var md5$1 = {exports: {}};
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;
if (WEB_WORKER) {
root = self;
}