|
@@ -696,7 +696,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
if (this.options.removeAlternativeImages) {
|
|
if (this.options.removeAlternativeImages) {
|
|
|
const shortcutIcons = Array.from(this.doc.querySelectorAll("link[href][rel=\"icon\"], link[href][rel=\"shortcut icon\"]"));
|
|
const shortcutIcons = Array.from(this.doc.querySelectorAll("link[href][rel=\"icon\"], link[href][rel=\"shortcut icon\"]"));
|
|
|
shortcutIcons.sort((linkElement1, linkElement2) => (parseInt(linkElement2.sizes, 10) || 16) - (parseInt(linkElement1.sizes, 10) || 16));
|
|
shortcutIcons.sort((linkElement1, linkElement2) => (parseInt(linkElement2.sizes, 10) || 16) - (parseInt(linkElement1.sizes, 10) || 16));
|
|
|
- const shortcutIcon = shortcutIcons.find(linkElement => linkElement.href && linkElement.href != EMPTY_DATA_URI);
|
|
|
|
|
|
|
+ const shortcutIcon = shortcutIcons[0];
|
|
|
if (shortcutIcon) {
|
|
if (shortcutIcon) {
|
|
|
this.doc.querySelectorAll("link[href][rel*=\"icon\"]").forEach(linkElement => {
|
|
this.doc.querySelectorAll("link[href][rel*=\"icon\"]").forEach(linkElement => {
|
|
|
if (linkElement != shortcutIcon) {
|
|
if (linkElement != shortcutIcon) {
|