Skip to content

Commit

Permalink
Simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmorris committed Sep 20, 2024
1 parent a7747d4 commit 78958aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/file_packager.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ def generate_js(data_target, data_files, metadata):
Module['setStatus']?.(`Downloading data... (${totalLoaded}/${totalSize})`);
return iterate();
} else {
const packageData = new Uint8Array(chunks.reduce((a, b) => a.concat(b), []));
const packageData = new Uint8Array([].concat(...chunks));
callback(packageData.buffer);
}
};
Expand Down

0 comments on commit 78958aa

Please sign in to comment.