Browse Source

Make sure all images are updated on Global Blocks.

dev
Roman Axelrod 1 year ago
parent
commit
38c49a64ad
  1. 2
      helpers.js

2
helpers.js

@ -248,7 +248,7 @@ export async function isFileEmpty(filePath, ignoreComments = false) {
export function replaceNames(content, images, uploadedImages) { export function replaceNames(content, images, uploadedImages) {
images.forEach((image, index) => { images.forEach((image, index) => {
content = content.replace(image, uploadedImages[index].fileName); content = content.replaceAll(image, uploadedImages[index].fileName);
}); });
return content; return content;

Loading…
Cancel
Save