Add type=module where needed

This commit is contained in:
Pieter Vander Vennet 2023-01-17 03:51:46 +01:00
parent 49f7deed3a
commit 14e2d71937
6 changed files with 7 additions and 7 deletions

View file

@ -49,7 +49,7 @@
Not found... Not found...
</div> </div>
<script src="./notfound.ts"></script> <script type="module" src="./notfound.ts"></script>
<script async data-goatcounter="https://pietervdvn.goatcounter.com/count" src="//gc.zgo.at/count.js"></script> <script async data-goatcounter="https://pietervdvn.goatcounter.com/count" src="//gc.zgo.at/count.js"></script>
</body> </body>

View file

@ -44,7 +44,7 @@
<div id="main" style="height: 100%">Loading...</div> <div id="main" style="height: 100%">Loading...</div>
<script src="./UI/ImportFlow/ImportHelperGui.ts"></script> <script type="module" src="./UI/ImportFlow/ImportHelperGui.ts"></script>
<script async data-goatcounter="https://pietervdvn.goatcounter.com/count" src="//gc.zgo.at/count.js"></script> <script async data-goatcounter="https://pietervdvn.goatcounter.com/count" src="//gc.zgo.at/count.js"></script>
</body> </body>

View file

@ -39,7 +39,7 @@
<div id="main" style="height: 100%">Loading...</div> <div id="main" style="height: 100%">Loading...</div>
<script src="./UI/ImportFlow/ImportViewerGui.ts"></script> <script type="module" src="./UI/ImportFlow/ImportViewerGui.ts"></script>
<script async data-goatcounter="https://pietervdvn.goatcounter.com/count" src="//gc.zgo.at/count.js"></script> <script async data-goatcounter="https://pietervdvn.goatcounter.com/count" src="//gc.zgo.at/count.js"></script>
</body> </body>

View file

@ -39,7 +39,7 @@
<div id="main"></div> <div id="main"></div>
<script src="./UI/ProfessionalGui.ts"></script> <script type="module" src="./UI/ProfessionalGui.ts"></script>
<script async data-goatcounter="https://pietervdvn.goatcounter.com/count" src="//gc.zgo.at/count.js"></script> <script async data-goatcounter="https://pietervdvn.goatcounter.com/count" src="//gc.zgo.at/count.js"></script>
</body> </body>

View file

@ -270,8 +270,8 @@ async function createLandingPage(layout: LayoutConfig, manifest, whiteIcons, alr
layout.shortDescription.textFor(targetLanguage) layout.shortDescription.textFor(targetLanguage)
) )
.replace( .replace(
'<script src="./index.ts"></script>', '<script type="module" src="./index.ts"></script>',
`<script src='./index_${layout.id}.ts'></script>` `<script type="module" src='./index_${layout.id}.ts'></script>`
) )
0 0
try { try {

View file

@ -22,7 +22,7 @@
<div id="maindiv">'maindiv' not attached</div> <div id="maindiv">'maindiv' not attached</div>
<div id="extradiv">'extradiv' not attached</div> <div id="extradiv">'extradiv' not attached</div>
<script src="./test.ts"></script> <script type="module" src="./test.ts"></script>
<script> <script>
window.addEventListener('load', () => { window.addEventListener('load', () => {