mirror of
https://github.com/chinchang/web-maker.git
synced 2025-01-30 11:09:02 +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:
parent
d97430880a
commit
d13e7981e0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user