Fix some html attributes and add a content-type.
This commit is contained in:
parent
6e6e04c362
commit
765542ef31
@ -6,8 +6,8 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||||
<meta name="description" content="Converse XMPP/Jabber Chat"/>
|
<meta name="description" content="Converse XMPP/Jabber Chat"/>
|
||||||
<link type="text/css" rel="stylesheet" media="screen" href="{{BASE_STATIC_URL}}/conversejs/converse.min.css" />
|
<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 type="text/javaScript" 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}}/static/builtin.js"></script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
#conversejs .chat-head {
|
#conversejs .chat-head {
|
||||||
display: none;
|
display: none;
|
||||||
@ -17,7 +17,7 @@
|
|||||||
<body class="converse-fullscreen">
|
<body class="converse-fullscreen">
|
||||||
<noscript>You need to enable JavaScript to run the Converse.js chat app.</noscript>
|
<noscript>You need to enable JavaScript to run the Converse.js chat app.</noscript>
|
||||||
<div id="conversejs-bg"></div>
|
<div id="conversejs-bg"></div>
|
||||||
<script>
|
<script type="text/javascript">
|
||||||
initConverse({
|
initConverse({
|
||||||
jid: '{{JID}}',
|
jid: '{{JID}}',
|
||||||
assetsPath : '{{BASE_STATIC_URL}}/conversejs/',
|
assetsPath : '{{BASE_STATIC_URL}}/conversejs/',
|
||||||
|
1
main.js
1
main.js
@ -190,6 +190,7 @@ async function register ({
|
|||||||
page = page.replace(/{{WS_SERVICE_URL}}/g, settings['chat-ws-uri'])
|
page = page.replace(/{{WS_SERVICE_URL}}/g, settings['chat-ws-uri'])
|
||||||
|
|
||||||
res.status(200)
|
res.status(200)
|
||||||
|
res.type('html')
|
||||||
res.send(page)
|
res.send(page)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return next(error)
|
return next(error)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user