Skip to content

Commit 2a03c22

Browse files
committed
fix: base64Data is not defined
1 parent 1c49c5e commit 2a03c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class CoCreateFileSystem {
9090

9191
if (contentType.startsWith('image/') || contentType.startsWith('audio/') || contentType.startsWith('video/')) {
9292
src = src.replace(/^data:image\/(png|jpeg|jpg);base64,/, '');
93-
src = Buffer.from(base64Data, 'base64');
93+
src = Buffer.from(src, 'base64');
9494
} else if (contentType === 'text/html') {
9595
try {
9696
src = await render.HTML(src, organization_id);

0 commit comments

Comments
 (0)