]> git.ardis.lu - static-encrypt/commitdiff
Set script block to module
authorArdis Lu <ardisglu@gmail.com>
Fri, 25 Sep 2026 05:27:43 +0000 (22:27 -0700)
committerArdis Lu <ardisglu@gmail.com>
Fri, 25 Sep 2026 05:27:43 +0000 (22:27 -0700)
This change opts-in to strict mode and avoids polluting the global namespace.

template.html

index e0eec3a1f538daf0aac94ab7bd340e52729e5406..4656134000e5aa45acc6f15dd38f6f41fd204c28 100644 (file)
@@ -54,7 +54,7 @@
     </form>
   </main>
 
-  <script>
+  <script type="module">
     const input = document.querySelector('input');
 
     document.querySelector('form').addEventListener('submit', async e => {
This page took 0.03978 seconds and 4 git commands to generate.