Fix some html attributes and add a content-type.

This commit is contained in:
John Livingston 2021-02-21 15:21:30 +01:00
parent 6e6e04c362
commit 765542ef31
2 changed files with 4 additions and 3 deletions

View File

@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="Converse XMPP/Jabber Chat"/>
<link type="text/css" rel="stylesheet" media="screen" href="{{BASE_STATIC_URL}}/conversejs/converse.min.css" />
<script src="{{BASE_STATIC_URL}}/conversejs/converse.min.js"></script>
<script src="{{BASE_STATIC_URL}}/static/builtin.js"></script>
<script type="text/javaScript" src="{{BASE_STATIC_URL}}/conversejs/converse.min.js"></script>
<script type="text/javascript" src="{{BASE_STATIC_URL}}/static/builtin.js"></script>
<style type="text/css">
#conversejs .chat-head {
display: none;
@ -17,7 +17,7 @@
<body class="converse-fullscreen">
<noscript>You need to enable JavaScript to run the Converse.js chat app.</noscript>
<div id="conversejs-bg"></div>
<script>
<script type="text/javascript">
initConverse({
jid: '{{JID}}',
assetsPath : '{{BASE_STATIC_URL}}/conversejs/',

View File

@ -190,6 +190,7 @@ async function register ({
page = page.replace(/{{WS_SERVICE_URL}}/g, settings['chat-ws-uri'])
res.status(200)
res.type('html')
res.send(page)
} catch (error) {
return next(error)