### 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
@@ -1254,7 +1254,7 @@
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Jul 20 2026 10:19:21 GMT+0800 (Taipei Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Jul 20 2026 10:47:41 GMT+0800 (Taipei Standard Time)
</footer>
<script> prettyPrint(); </script>
+1 -1
View File
@@ -1483,7 +1483,7 @@ hash.update('The quick brown fox jumps over the lazy dog');</code></pre>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Jul 20 2026 10:19:21 GMT+0800 (Taipei Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Jul 20 2026 10:47:41 GMT+0800 (Taipei Standard Time)
</footer>
<script> prettyPrint(); </script>
+1 -1
View File
@@ -302,7 +302,7 @@ md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e</code></pre>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Jul 20 2026 10:19:21 GMT+0800 (Taipei Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Jul 20 2026 10:47:41 GMT+0800 (Taipei Standard Time)
</footer>
<script> prettyPrint(); </script>
+1 -1
View File
@@ -204,7 +204,7 @@ Author: Chen, Yi-Cyuan (emn178@gmail.com)</p></article>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Jul 20 2026 10:19:21 GMT+0800 (Taipei Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Jul 20 2026 10:47:41 GMT+0800 (Taipei Standard Time)
</footer>
<script> prettyPrint(); </script>
+1 -1
View File
@@ -1741,7 +1741,7 @@ hash.update('The quick brown fox jumps over the lazy dog');</code></pre>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Jul 20 2026 10:19:21 GMT+0800 (Taipei Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Jul 20 2026 10:47:41 GMT+0800 (Taipei Standard Time)
</footer>
<script> prettyPrint(); </script>
+1 -1
View File
@@ -1203,7 +1203,7 @@
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Jul 20 2026 10:19:21 GMT+0800 (Taipei Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Jul 20 2026 10:47:41 GMT+0800 (Taipei Standard Time)
</footer>
<script> prettyPrint(); </script>
+2 -2
View File
@@ -50,7 +50,7 @@
if (root.JS_MD5_NO_WINDOW) {
WINDOW = false;
}
var WEB_WORKER = !WINDOW &amp;&amp; typeof self === 'object';
var WEB_WORKER = typeof WorkerGlobalScope !== 'undefined' &amp;&amp; typeof self !== 'undefined' &amp;&amp; self instanceof WorkerGlobalScope;
/* istanbul ignore next */
var NODE_JS = !root.JS_MD5_NO_NODE_JS &amp;&amp; !WINDOW &amp;&amp; typeof process === 'object' &amp;&amp; process.versions &amp;&amp; process.versions.node;
if (NODE_JS) {
@@ -948,7 +948,7 @@
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Jul 20 2026 10:19:21 GMT+0800 (Taipei Standard Time)
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Mon Jul 20 2026 10:47:41 GMT+0800 (Taipei Standard Time)
</footer>
<script> prettyPrint(); </script>