equal
deleted
inserted
replaced
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", "4.0.1"); |
16 local js_url = module:get_option_string("conversejs_script", cdn_url.."/"..version.."/dist/converse.min.js"); |
16 if version ~= "" then version = "/" .. version end |
17 local css_url = module:get_option_string("conversejs_css", cdn_url.."/"..version.."/css/converse.min.css"); |
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 |
19 |
19 local html_template = ([[ |
20 local html_template = ([[ |
20 <!DOCTYPE html> |
21 <!DOCTYPE html> |
21 <html> |
22 <html> |
22 <head> |
23 <head> |