Software /
code /
prosody-modules
Comparison
mod_conversejs/mod_conversejs.lua @ 3641:58b49d883f0c
mod_conversejs: Change CSS URL
I hope this is correct
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 09 Aug 2019 18:41:51 +0200 |
parent | 3599:42fa833169bb |
child | 3737:49e65a7e9415 |
comparison
equal
deleted
inserted
replaced
3640:b2f32b3c6ec1 | 3641:58b49d883f0c |
---|---|
22 local cdn_url = module:get_option_string("conversejs_cdn", "https://cdn.conversejs.org"); | 22 local cdn_url = module:get_option_string("conversejs_cdn", "https://cdn.conversejs.org"); |
23 | 23 |
24 local version = module:get_option_string("conversejs_version", ""); | 24 local version = module:get_option_string("conversejs_version", ""); |
25 if version ~= "" then version = "/" .. version end | 25 if version ~= "" then version = "/" .. version end |
26 local js_url = module:get_option_string("conversejs_script", cdn_url..version.."/dist/converse.min.js"); | 26 local js_url = module:get_option_string("conversejs_script", cdn_url..version.."/dist/converse.min.js"); |
27 local css_url = module:get_option_string("conversejs_css", cdn_url..version.."/css/converse.min.css"); | 27 local css_url = module:get_option_string("conversejs_css", cdn_url..version.."/dist/converse.min.css"); |
28 | 28 |
29 local html_template; | 29 local html_template; |
30 | 30 |
31 do | 31 do |
32 local template_filename = module:get_option_string(module.name .. "_html_template", "template.html"); | 32 local template_filename = module:get_option_string(module.name .. "_html_template", "template.html"); |