Просмотр исходного кода

take into account ignored URLs in srcset

Gildas 7 лет назад
Родитель
Сommit
b0601bfdc6
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      lib/single-file/single-file-core.js

+ 2 - 0
lib/single-file/single-file-core.js

@@ -1326,6 +1326,8 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 						} else {
 							return "";
 						}
+					} else {
+						return resourceURL + (srcsetValue.w ? " " + srcsetValue.w + "w" : srcsetValue.d ? " " + srcsetValue.d + "x" : "");
 					}
 				}));
 				resourceElement.setAttribute(attributeName, srcsetValues.join(", "));