Skip to content

Commit

Permalink
refactor: Update iframe source URL in Webvm.js
Browse files Browse the repository at this point in the history
The iframe source URL in the Webvm.js component was updated to use a relative path instead of an absolute path. This change ensures that the iframe displays the correct content when the application is deployed.
  • Loading branch information
szweibel committed Sep 11, 2024
1 parent 11cb67b commit 8cf8002
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/Wasm/Webvm.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export default function Webvm(props) {
<script src={process.env.NEXT_PUBLIC_ASSET_PREFIX +'/coi-serviceworker.js'} async></script>
</Head>
{/* <EditorTopbar {...props} /> */}
<iframe src='../../webvm/index.html' width='100%' height='95%' id="iframe"></iframe>
<iframe src='../webvm/index.html' width='100%' height='95%' id="iframe"></iframe>
{/* <iframe src='../../webvm/index.html' width='100%' height='95%' id="iframe"></iframe> */}
</div>
)
}

0 comments on commit 8cf8002

Please sign in to comment.