1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-08-01 11:00:28 +02:00

changing preview.html -> .hmt

because cloudflare is redirecting preview.html to /preview
this is causing a redirect
This commit is contained in:
Kushagra Gour
2024-05-08 17:40:52 +05:30
parent c07c73963e
commit dce8c02f03
2 changed files with 23 additions and 1 deletions

22
preview/preview.htm Normal file
View File

@@ -0,0 +1,22 @@
<style>
body {
margin: 0;
}
#demo-frame {
border: 0;
width: 100%;
background: white;
height: 100%;
}
</style>
<body>
<iframe
src="about://blank"
frameborder="0"
id="demo-frame"
allowfullscreen
></iframe>
<script src="detached-window.js"></script>
</body>

View File

@@ -962,7 +962,7 @@ export default class ContentWrap extends Component {
/>
) : (
<iframe
src={`${PREVIEW_FRAME_HOST}/preview.html`}
src={`${PREVIEW_FRAME_HOST}/preview.htm`}
ref={el => (this.frame = el)}
frameborder="0"
id="demo-frame"