File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 2525
2626 asyncc . latestVersion = 'v/0.1.0' ;
2727
28+ asyncc . root = "https://async-java.github.io/" ;
29+
2830 asyncc . changeIframe = ( versionPath ) => {
2931 let iframe = document . getElementsByClassName ( "main-iframe" ) ;
3032 if ( ! iframe ) {
3133 return alert ( 'Could not find iframe on page.' ) ;
3234 }
3335
3436 console . log ( 'src:' , versionPath ) ;
35- iframe . src = versionPath ;
37+ iframe . src = asyncc . root + versionPath ;
3638
3739 console . log ( { iframe} ) ;
3840 // iframe.replaceWith(iframe);
4143 } ;
4244
4345
46+
4447</ script >
4548
4649< div class ="flex-container ">
5356 </ div >
5457 </ div >
5558 < div style ="display: flex; flex-grow: 1 ">
56- < iframe id ="main-iframe " src =" v/0.1.2 " width ="100% " height ="100% "> </ iframe >
59+ < iframe id ="main-iframe " width ="100% " height ="100% "> </ iframe >
5760 </ div >
58- </ div >
61+ </ div >
62+
63+ < script >
64+ asyncc . changeIframe ( 'v/0.1.2' ) ;
65+ </ script >
You can’t perform that action at this time.
0 commit comments