Software /
code /
prosody-modules
Comparison
mod_conversejs/mod_conversejs.lua @ 3347:823156d5885b
mod_conversejs: Strip extra slash if version is set to the empty string
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 04 Oct 2018 14:40:32 +0200 |
parent | 3337:b46bb9392efe |
child | 3348:f753cf4f7224 |
comparison
equal
deleted
inserted
replaced
3346:03cbffd807bb | 3347:823156d5885b |
---|---|
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> |