Преглед изворни кода

fixed srcset density parsing

Gildas пре 7 година
родитељ
комит
a8dcb53048
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -594,7 +594,7 @@ const SingleFileCore = (() => {
 					if (resourceURL && resourceURL != baseURI && DomUtil.testValidPath(resourceURL)) {
 						try {
 							const dataURI = await batchRequest.addURL(new URL(resourceURL, baseURI).href);
-							return dataURI + (srcSetValue.w ? " " + srcSetValue.w + "w" : "");
+							return dataURI + (srcSetValue.w ? " " + srcSetValue.w + "w" : srcSetValue.d ? " " + srcSetValue.d + "x" : "");
 						} catch (e) {
 							// ignored
 						}