Software /
code /
prosody-modules
Diff
mod_conversejs/mod_conversejs.lua @ 2933:8858cef9ed27
mod_conversejs: Pass current domain as 'default_domain'
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 16 Mar 2018 20:32:35 +0100 |
parent | 2921:3264058ae54f |
child | 2934:5c60df8b1a07 |
line wrap: on
line diff
--- a/mod_conversejs/mod_conversejs.lua Thu Mar 15 23:44:35 2018 +0100 +++ b/mod_conversejs/mod_conversejs.lua Fri Mar 16 20:32:35 2018 +0100 @@ -27,6 +27,7 @@ websocket_url = has_ws and module:http_url("websocket","xmpp-websocket"):gsub("^http", "ws") or nil; authentication = module:get_option_string("authentication") == "anonymous" and "anonymous" or "login"; jid = module.host; + default_domain = module.host; }; local view_mode_css = "converse";