Explorar o código

fixed srcset formatting

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
9b625fffe7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -541,7 +541,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 : "");
+							return dataURI + (srcSetValue.w ? " " + srcSetValue.w + "w" : "");
 						} catch (e) {
 							// ignored
 						}