|
@@ -18,7 +18,7 @@
|
|
|
* along with SingleFile. If not, see <http://www.gnu.org/licenses/>.
|
|
* along with SingleFile. If not, see <http://www.gnu.org/licenses/>.
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
-/* global SingleFileCore, DOMParser, URL, setTimeout, TextDecoder, Blob, fetch, FileReader, superFetch, srcsetParser, cssMinifier, htmlMinifier, cssRulesMinifier, fontsMinifier, fontsAltMinifier, serializer, docHelper, mediasMinifier, TextEncoder, crypto, matchedRules, imagesMinifier, FontFace, cssTree */
|
|
|
|
|
|
|
+/* global SingleFileCore, DOMParser, URL, setTimeout, TextDecoder, Blob, fetch, FileReader, superFetch, srcsetParser, cssMinifier, htmlMinifier, cssRulesMinifier, fontsMinifier, fontsAltMinifier, serializer, docHelper, mediasMinifier, TextEncoder, crypto, matchedRules, imagesAltMinifier, FontFace, cssTree */
|
|
|
|
|
|
|
|
this.SingleFile = this.SingleFile || (() => {
|
|
this.SingleFile = this.SingleFile || (() => {
|
|
|
|
|
|
|
@@ -243,7 +243,7 @@ this.SingleFile = this.SingleFile || (() => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static removeAlternativeImages(doc, options) {
|
|
static removeAlternativeImages(doc, options) {
|
|
|
- return imagesMinifier.process(doc, options);
|
|
|
|
|
|
|
+ return imagesAltMinifier.process(doc, options);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static parseSrcset(srcset) {
|
|
static parseSrcset(srcset) {
|