Comparison

mod_conversejs/mod_conversejs.lua @ 3348:f753cf4f7224

mod_conversejs: Default to latest version of Converse.js
author Kim Alvefur <zash@zash.se>
date Thu, 04 Oct 2018 14:43:23 +0200
parent 3347:823156d5885b
child 3363:2681f74750b2
comparison
equal deleted inserted replaced
3347:823156d5885b 3348:f753cf4f7224
10 module:depends("websocket"); 10 module:depends("websocket");
11 end); 11 end);
12 12
13 local cdn_url = module:get_option_string("conversejs_cdn", "https://cdn.conversejs.org"); 13 local cdn_url = module:get_option_string("conversejs_cdn", "https://cdn.conversejs.org");
14 14
15 local version = module:get_option_string("conversejs_version", "4.0.1"); 15 local version = module:get_option_string("conversejs_version", "");
16 if version ~= "" then version = "/" .. version end 16 if version ~= "" then version = "/" .. version end
17 local js_url = module:get_option_string("conversejs_script", cdn_url..version.."/dist/converse.min.js"); 17 local js_url = module:get_option_string("conversejs_script", cdn_url..version.."/dist/converse.min.js");
18 local css_url = module:get_option_string("conversejs_css", cdn_url..version.."/css/converse.min.css"); 18 local css_url = module:get_option_string("conversejs_css", cdn_url..version.."/css/converse.min.css");
19 19
20 local html_template = ([[ 20 local html_template = ([[