Diff

mod_conversejs/mod_conversejs.lua @ 3038:48cbf6a3f112

mod_conversejs: Make HTML more well-formed
author Kim Alvefur <zash@zash.se>
date Sat, 07 Apr 2018 14:32:50 +0200
parent 2998:719b76ee0578
child 3039:df77580be2f0
line wrap: on
line diff
--- a/mod_conversejs/mod_conversejs.lua	Thu May 24 13:25:13 2018 +0100
+++ b/mod_conversejs/mod_conversejs.lua	Sat Apr 07 14:32:50 2018 +0200
@@ -11,10 +11,14 @@
 
 local template = [[
 <!DOCTYPE html>
+<html>
+<head>
 <meta charset="utf-8">
 <link rel="stylesheet" type="text/css" media="screen" href="https://cdn.conversejs.org/css/%s.min.css">
 <script charset="utf-8" src="https://cdn.conversejs.org/dist/converse.min.js"></script>
-<body><script>converse.initialize(%s);</script>
+</head>
+<body><script>converse.initialize(%s);</script></body>
+</html>
 ]]
 
 local more_options = module:get_option("conversejs_options");