From 012d6fc9722eeec271d8a341f80e8526080b27bc Mon Sep 17 00:00:00 2001 From: Matt Meigs Date: Mon, 29 Jan 2024 12:07:33 -0500 Subject: [PATCH] parse and buffer --- src/init/DocumentDatabase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init/DocumentDatabase.js b/src/init/DocumentDatabase.js index f5baa0b5c..083129186 100644 --- a/src/init/DocumentDatabase.js +++ b/src/init/DocumentDatabase.js @@ -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) {