Skip to content

Commit

Permalink
decode base64
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs committed Jan 29, 2024
1 parent c1f2d84 commit 6dac07b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/DocumentBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const query = graphql`
slug
images {
childImageSharp {
gatsbyImageData(layout: CONSTRAINED, placeholder: NONE)
gatsbyImageData(layout: CONSTRAINED, formats: [WEBP], placeholder: NONE)
}
relativePath
}
Expand Down
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 asset;
return atob(asset);
}
const result = this.zip.getEntry(`assets/${checksum}`);
if (result) {
Expand Down

0 comments on commit 6dac07b

Please sign in to comment.