]> git.parisson.com Git - teleforma.git/commitdiff
Fix chat loaded when not present in page
authortest test <yoanl@pilotsystems.net>
Mon, 14 Jun 2021 12:51:47 +0000 (14:51 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Mon, 14 Jun 2021 12:51:47 +0000 (14:51 +0200)
teleforma/src/js/main.ts

index 9d2c0031badcde1a641c09cbbe0dab687f2d6c42..463805a77d120422c39e92a21823a4436c5c52c9 100644 (file)
@@ -3,6 +3,8 @@ import Chat from "./components/Chat.vue"
 
 Vue.config.productionTip = false
 
-new Vue({
-  render: (h) => h(Chat)
-}).$mount("#chat")
+if(document.getElementById("chat")){
+  new Vue({
+    render: (h) => h(Chat)
+  }).$mount("#chat")
+}