Skip to content

Commit bd82ec5

Browse files
add option blockAlternativeImages
(see gildas-lormeau/SingleFile#1460)
1 parent 2420f1a commit bd82ec5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/lib/processor-helper-common.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class ProcessorHelperCommon {
220220
if (options.saveOriginalURLs && !isDataURL(originSrcset)) {
221221
resourceElement.setAttribute("data-sf-original-srcset", originSrcset);
222222
}
223-
if (!options.blockImages) {
223+
if (!options.blockImages && !options.blockAlternativeImages) {
224224
const srcsetValues = await Promise.all(srcset.map(async srcsetValue => {
225225
let resourceURL = normalizeURL(srcsetValue.url);
226226
if (!testIgnoredPath(resourceURL)) {

0 commit comments

Comments
 (0)