Update deploy process to cope with new server

This commit is contained in:
Alexandre Bourlier
2018-05-06 08:17:07 +02:00
parent 1f148c416b
commit e6e7f29ee3
3 changed files with 7 additions and 9 deletions

View File

@ -43,13 +43,12 @@
data-bosh-service-url="https://conversejs.org/http-bind/"
data-debug="true"
data-jid="nomnom.im"
data-locales-url="http://hd-app.local/dist/lib/xmpp-chat-component/node_modules/converse.js/locale/{{{locale}}}/LC_MESSAGES/converse.json",
data-locales-url="<?php echo $cdn; ?>/node_modules/converse.js/locale/{{{locale}}}/LC_MESSAGES/converse.json",
data-room-jid="anonymous@conference.nomnom.im">
</hd-chat-window>
<script>
// Store url on load
var currentRoute = getCurrentRoute();
console.log(currentRoute);
var chatSingleton = document.querySelector("#chat-singleton");
var body = document.querySelector("body");
@ -74,7 +73,6 @@
if (currentRoute.indexOf("chat") == -1) {
currentRoute += "-chat";
}
console.log(currentRoute);
var currentView = document.querySelector("#" + currentRoute);
if (currentView.querySelector("hd-chat-window") == null) {
currentView.appendChild(chatSingleton);