File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 5
5
< meta content ="text/html;charset=utf-8 " http-equiv ="Content-Type ">
6
6
< meta content ="utf-8 " http-equiv ="encoding ">
7
7
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
8
- < script noshim >
8
+ < script >
9
9
window . esmsInitOptions = {
10
10
// -- Hooks --
11
11
// Module load error
55
55
< link rel ="
modulepreload "
href ="
https://ga.jspm.io/npm:[email protected] /index.js "
integrity ="
sha384-jVagjV+2YtlseazU2byX6gMLPHaA5Ps2c6HhvsGDlWjn45YCCoU1q+QtQTOb1MjT "
/>
56
56
< link rel ="
modulepreload "
href ="
https://ga.jspm.io/npm:[email protected] /index.js "
integrity ="
sha384-HIW1B3OQdGPkUEgh29MiYoUKQp+mFTjw50hRVvGhZgUaNYrUFYN07a+3CqC0/I7L "
/>
57
57
< link rel ="
modulepreload "
href ="
https://ga.jspm.io/npm:[email protected] /dist/esm-browser/index.js "
integrity ="
sha384-y7UmGnwe+/V/S4AD5T6MLU9dHjA3PLvuVGNhrqZApiNbq9Lf8s3aNRrcnzOa+qtR "
/>
58
- < script src ="js/frame.js " crossorigin =" anonymous " noshim > </ script >
58
+ < script src ="js/frame.js "> </ script >
59
59
</ head >
60
60
< body >
61
61
< main id ="main "> </ main >
Original file line number Diff line number Diff line change 13
13
. split ( "\n" )
14
14
. map ( ( line ) => line . replace ( / ^ i m p o r t ( .+ ) f r o m " ..\/ ( [ ^ " ] + ) " ; $ / , `import $1 from "${ url } /$2";` ) )
15
15
. join ( "\n" ) ;
16
+ const finalCode = codeFixedImports + "\n\nmain();"
16
17
// See https://stackoverflow.com/a/6433770
17
18
try {
18
- scriptEl . appendChild ( document . createTextNode ( codeFixedImports ) ) ;
19
+ scriptEl . appendChild ( document . createTextNode ( finalCode ) ) ;
19
20
} catch ( e ) {
20
- scriptEl . text = codeFixedImports ;
21
+ scriptEl . text = finalCode ;
21
22
} finally {
22
23
document . body . appendChild ( scriptEl ) ;
23
24
}
You can’t perform that action at this time.
0 commit comments