|
|
@@ -379,14 +379,14 @@ this.SingleFileCore = this.SingleFileCore || (() => {
|
|
|
}
|
|
|
|
|
|
insertFaviconLink() {
|
|
|
- let faviconElement = this.doc.querySelectorAll("link[href][rel*=\"icon\"]")[0];
|
|
|
+ let faviconElement = this.doc.querySelector("link[href][rel*=\"icon\"]");
|
|
|
if (!faviconElement) {
|
|
|
faviconElement = this.doc.createElement("link");
|
|
|
faviconElement.setAttribute("type", "image/x-icon");
|
|
|
faviconElement.setAttribute("rel", "shortcut icon");
|
|
|
faviconElement.setAttribute("href", "/favicon.ico");
|
|
|
- this.doc.head.appendChild(faviconElement);
|
|
|
}
|
|
|
+ this.doc.head.appendChild(faviconElement);
|
|
|
}
|
|
|
|
|
|
resolveHrefs() {
|