Ignore casing in wiki link marking

This commit is contained in:
Zef Hemel
2023-10-10 09:38:06 +02:00
parent 539f0e5326
commit 6892756397
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -68,13 +68,16 @@ export function createWidgetSandboxIFrame(
iframe.onload = () => {
iframe.contentDocument!.write(panelHtml);
// return;
// Subscribe to message event on global object (to receive messages from iframe)
globalThis.addEventListener("message", messageListener);
// Only run this code once
iframe.onload = null;
Promise.resolve(content).then((content) => {
if (!iframe.contentWindow) {
console.warn("Iframe went away or content was not loaded");
return;
}
if (content.html) {
iframe.contentWindow!.postMessage({
type: "html",