diff mod_conversejs/templates/template.html @ 6560:7dee00093c88

mod_conversejs: Update for compatibility with Converse.js 14 Some sort of new JavaScript module thing. Appears to be backwards-compatible with earlier versions. Fixes #1997
author Kim Alvefur <zash@zash.se>
date Fri, 26 Jun 2026 17:59:55 +0200
parents 1c8197075d04
children
line wrap: on
line diff
--- a/mod_conversejs/templates/template.html	Sat Jun 06 08:40:31 2026 +0200
+++ b/mod_conversejs/templates/template.html	Fri Jun 26 17:59:55 2026 +0200
@@ -7,7 +7,7 @@
 <link rel="stylesheet" type="text/css" media="screen" href="{item}"/>}
 <link rel="manifest" href="{manifest_url}">
 {header_scripts#
-<script charset="utf-8" src="{item}"></script>}
+<script type="module" charset="utf-8" src="{item}"></script>}
 <title>{service_name}</title>
 {header_tags#
 {item!}}
@@ -33,6 +33,6 @@
 </dl>
 <p><a href="https://xmpp.org/software/clients.html">More clients...</a></p>
 </noscript>
-<script>{conversejs.startup.script!}</script>
+<script type="module">{conversejs.startup.script!}</script>
 </body>
 </html>