Skip to content

Commit

Permalink
parse and buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs committed Jan 29, 2024
1 parent 1b11116 commit 012d6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init/DocumentDatabase.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class ManifestDocumentDatabase {
async getAsset(checksum) {
if (!this.zip) {
const asset = fs.readFileSync(`assets/${checksum}`);
return decodeURIComponent(escape(window.atob(asset)));
return Buffer(JSON.parse(asset));
}
const result = this.zip.getEntry(`assets/${checksum}`);
if (result) {
Expand Down

0 comments on commit 012d6fc

Please sign in to comment.