Skip to content

Commit 3c7a6ae

Browse files
committed
ores/auto-commit => 'set'
1 parent d234480 commit 3c7a6ae

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

index.html

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
32

43
<style>
@@ -17,35 +16,45 @@
1716
flex-direction: column;
1817
}
1918

20-
html, body {margin: 0; height: 100%; overflow: hidden}
19+
html, body {
20+
margin: 0;
21+
height: 100%;
22+
overflow: hidden
23+
}
2124

2225
</style>
2326

2427
<script>
2528

26-
const asyncc = window.__asyncc__ = {};
29+
30+
let local = false;
31+
32+
// dom.appendChild('');
33+
34+
35+
const asyncc = window.__asyncc__ = {};
2736

2837
asyncc.latestVersion = 'v/0.1.0';
2938

3039
asyncc.root = "https://async-java.github.io/";
3140

3241
asyncc.changeIframe = (versionPath) => {
3342
let iframe = document.getElementsByClassName("main-iframe");
34-
if(!iframe){
43+
if (!iframe) {
3544
return alert('Could not find iframe on page.');
3645
}
3746

3847
console.log('src:', versionPath);
39-
iframe.src = asyncc.root + versionPath;
48+
// iframe.src = asyncc.root + versionPath;
4049

50+
iframe.src = versionPath;
4151
console.log({iframe});
4252
// iframe.replaceWith(iframe);
4353
// iframe.location.reload();
4454
// iframe.contentWindow.location.reload();
4555
};
4656

4757

48-
4958
</script>
5059

5160
<div class="flex-container">
@@ -58,10 +67,11 @@
5867
</div>
5968
</div>
6069
<div style="display: flex; flex-grow: 1">
61-
<iframe id="main-iframe" src="https://async-java.github.io/v/0.1.0" width="100%" height="100%"></iframe>
70+
<!--<iframe id="main-iframe" src="https://async-java.github.io/v/0.1.0" width="100%" height="100%"></iframe>-->
71+
<iframe id="main-iframe" src="v/0.1.0" width="100%" height="100%"></iframe>
6272
</div>
6373
</div>
6474

6575
<script>
66-
// asyncc.changeIframe('v/0.1.2');
76+
asyncc.changeIframe('v/0.1.2');
6777
</script>

0 commit comments

Comments
 (0)