File tree Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Original file line number Diff line number Diff line change 1-
21< meta http-equiv ="Content-Security-Policy " content ="upgrade-insecure-requests ">
32
43< style >
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 ">
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 >
You can’t perform that action at this time.
0 commit comments