1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-01-30 19:19:13 +01:00

Replace preview with index in the check

The iframe where the output is displayed in case of Files Mode has
the url http(s)://<domain>/index.html and not preview.html.
This commit is contained in:
Arnab Sen 2022-03-12 12:26:23 +05:30
parent d97430880a
commit d13e7981e0
No known key found for this signature in database
GPG Key ID: 255D0564BAEA8F9D

View File

@ -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;
}