New web project with Beat Saber tools
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<script>
|
||||
export let previewLink;
|
||||
|
||||
let iframe;
|
||||
</script>
|
||||
|
||||
<iframe
|
||||
class="previewFrame"
|
||||
title=""
|
||||
src={previewLink}
|
||||
allowfullscreen
|
||||
bind:this={iframe}
|
||||
on:load={() => {
|
||||
const newLocation = iframe.contentWindow.location.href;
|
||||
window.location.href = newLocation;
|
||||
}} />
|
||||
|
||||
<style>
|
||||
.previewFrame {
|
||||
width: 90vw;
|
||||
height: 65vh;
|
||||
border-radius: 0.6em;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user