Skip to content

Commit c49c4f0

Browse files
authored
Add Electron fix
1 parent 37bf647 commit c49c4f0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

index.htm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6048,6 +6048,7 @@
60486048
FAQ: This code probably isn't government material. No, there are no backdoors.
60496049
GLOSS: BWTC: Burrows-Wheeler Transform Compressor. 32K: Base32768. Key: encrypted
60506050
-->
6051+
60516052
</head>
60526053

60536054
<body>
@@ -6127,7 +6128,7 @@ <h3>Decoding:</h3>
61276128
WINDOW = false;
61286129
}
61296130
var WEB_WORKER = !WINDOW && typeof self === 'object';
6130-
var NODE_JS = !root.JS_SHA256_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node;
6131+
var NODE_JS = !root.JS_SHA256_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node && process.type != 'renderer';
61316132
if (NODE_JS) {
61326133
root = global;
61336134
} else if (WEB_WORKER) {

0 commit comments

Comments
 (0)