From d13e7981e008bf1b40539d1e1e43021e83a3a0d4 Mon Sep 17 00:00:00 2001 From: Arnab Sen Date: Sat, 12 Mar 2022 12:26:23 +0530 Subject: [PATCH] Replace preview with index in the check The iframe where the output is displayed in case of Files Mode has the url http(s):///index.html and not preview.html. --- src/detached-window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detached-window.js b/src/detached-window.js index 1253967..c2d21f5 100644 --- a/src/detached-window.js +++ b/src/detached-window.js @@ -9,7 +9,7 @@ window.addEventListener('message', e => { frame.contentDocument.close(); }, 10); } - if (e.data && e.data.url && e.data.url.match(/preview\.html/)) { + if (e.data && e.data.url && e.data.url.match(/index\.html/)) { document.querySelector('iframe').src = e.data.url; }