|
|
@@ -77,7 +77,8 @@
|
|
|
});
|
|
|
document.replaceChild(contentDocument.documentElement, document.documentElement);
|
|
|
deserializeShadowRoots(document);
|
|
|
- window.parent.postMessage(JSON.stringify({ "method": "setMetadata", title: document.title, icon: document.querySelector("link[rel*=icon]").href }), "*");
|
|
|
+ const iconElement = document.querySelector("link[rel*=icon]");
|
|
|
+ window.parent.postMessage(JSON.stringify({ "method": "setMetadata", title: document.title, icon: iconElement && iconElement.href }), "*");
|
|
|
document.querySelectorAll(NOTE_TAGNAME).forEach(containerElement => attachNoteListeners(containerElement, true));
|
|
|
document.documentElement.appendChild(getStyleElement(HIGHLIGHTS_WEB_STYLESHEET));
|
|
|
maskPageElement = getMaskElement(PAGE_MASK_CLASS, PAGE_MASK_CONTAINER_CLASS);
|