Changeset View
Changeset View
Standalone View
Standalone View
web/static/js/app.js
Show All 12 Lines | |||||
// to also remove its path from "config.paths.watched". | // to also remove its path from "config.paths.watched". | ||||
import "phoenix_html" | import "phoenix_html" | ||||
// Import local files | // Import local files | ||||
// | // | ||||
// Local files can be imported directly using relative | // Local files can be imported directly using relative | ||||
// paths "./socket" or full ones "web/static/js/socket". | // paths "./socket" or full ones "web/static/js/socket". | ||||
// import socket from "./socket" | import KolabChat from "./api" | ||||
let chat = new KolabChat(); | |||||
if (window.userToken) { | |||||
chat.init({token: window.userToken}); | |||||
} |