Gildas 3 лет назад
Родитель
Сommit
f4ae8a106a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/single-file/single-file-core.js

+ 1 - 1
src/single-file/single-file-core.js

@@ -2006,7 +2006,7 @@ class ProcessorHelper {
 							}
 							if (removeElementIfMissing && content == EMPTY_DATA_URI) {
 								resourceElement.remove();
-							} else {
+							} else if (content !== EMPTY_DATA_URI) {
 								const forbiddenPrefixFound = PREFIXES_FORBIDDEN_DATA_URI.filter(prefixDataURI => content.startsWith(prefixDataURI)).length;
 								if (!forbiddenPrefixFound) {
 									const isSVG = content.startsWith(PREFIX_DATA_URI_IMAGE_SVG);