Skip to content

Commit c3fc84d

Browse files
committed
allow svg images
1 parent b98dcca commit c3fc84d

File tree

1 file changed

+2
-2
lines changed
  • fiduswriter/pandoc/static/js/modules/pandoc

1 file changed

+2
-2
lines changed

fiduswriter/pandoc/static/js/modules/pandoc/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const flattenDirectory = rootMap => {
1414
for (const [key, value] of currentMap) {
1515
if (value instanceof Map) {
1616
processMap(value, `${currentPath}${key}/`)
17-
} else if (value instanceof Blob) {
17+
} else {
1818
result[`${currentPath}${key}`] = value
1919
}
2020
}
@@ -24,7 +24,7 @@ export const flattenDirectory = rootMap => {
2424
for (const [key, value] of rootMap) {
2525
if (value instanceof Map) {
2626
processMap(value, `./${key}/`)
27-
} else if (value instanceof Blob) {
27+
} else {
2828
result[`./${key}`] = value
2929
}
3030
}

0 commit comments

Comments
 (0)