Skip to content

Commit 2463ea8

Browse files
committed
Proper ifdef gate.
1 parent 574a119 commit 2463ea8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/proxyClient.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ var SUPPORT_BASE64_EMBEDDING;
129129
var filename;
130130
filename ||= '<<< filename >>>';
131131

132-
#if SINGLE_FILE_BINARY_ENCODE
132+
#if SINGLE_FILE && SINGLE_FILE_BINARY_ENCODE
133133
/** @noinline */
134134
function binaryDecode(bin) { for(var i=0,l=bin.length,o=new Uint8Array(l);i<l;++i) o[i]=bin.charCodeAt(i)-1; return o; }
135135
var workerURL = URL.createObjectURL(new Blob([binaryDecode(filename)], {type: 'application/javascript'}));
@@ -173,7 +173,7 @@ worker.onmessage = (event) => {
173173
if (!workerResponded) {
174174
workerResponded = true;
175175
Module.setStatus?.('');
176-
#if SINGLE_FILE_BINARY_ENCODE
176+
#if SINGLE_FILE && SINGLE_FILE_BINARY_ENCODE
177177
URL.revokeObjectURL(workerURL);
178178
#else
179179
if (SUPPORT_BASE64_EMBEDDING && workerURL !== filename) URL.revokeObjectURL(workerURL);

0 commit comments

Comments
 (0)