diff --git a/freechat-client/src/html.js b/freechat-client/src/html.js index 15bce49..d024882 100644 --- a/freechat-client/src/html.js +++ b/freechat-client/src/html.js @@ -38,13 +38,7 @@ exports.build_server_list = function (config, dom_id) { 'classList': ['btn', 'btn-outline-secondary', 'btn-nav-settings'], 'textContent': server['name'], 'type': 'button', - 'onClick': channels.get_channels(id, server['port']) - }) - // Why not jquery? because it doesn't write to the node's attributes itself - // for some reason - child.addEventListener('click', function() { - // NOTE: at some point /invite/ will be handled on port - channels.get_channels(server['domain'], server['port']) + 'onClick': channels.get_channels(server) }) container.appendChild(child)