template fix

This commit is contained in:
Zef Hemel
2023-11-21 13:26:48 +01:00
parent db607f1661
commit aa5bff548d
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ function claimIFrame(): PreloadedIFrame {
export function broadcastReload() {
for (const preloadedIframe of iframePool) {
if (preloadedIframe.used) {
if (preloadedIframe.used && preloadedIframe.iframe?.contentWindow) {
// Send a message to the global object, which the iframe is listening to
globalThis.dispatchEvent(
new MessageEvent("message", {