diff options
Diffstat (limited to 'assets/js/app.js')
-rw-r--r-- | assets/js/app.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/assets/js/app.js b/assets/js/app.js index a884e88..94780d0 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -44,4 +44,8 @@ liveSocket.connect() window.liveSocket = liveSocket // Hack to remove alerts on click -Array.from(window.document.getElementsByClassName('alert')).forEach((x) => x.addEventListener('click', () => x.style.display = "none"))
\ No newline at end of file +Array.from(window.document.getElementsByClassName('alert')).forEach((x) => x.addEventListener('click', () => x.style.display = "none")) + +import RoomChat from "./chat" +window.RoomChat = RoomChat; +window.userSocket = new Socket("/socket", {params: {_csrf_token: csrfToken}})
\ No newline at end of file |