equal
deleted
inserted
replaced
14 |
14 |
15 local has_ws = pcall(function () |
15 local has_ws = pcall(function () |
16 module:depends("websocket"); |
16 module:depends("websocket"); |
17 end); |
17 end); |
18 |
18 |
19 do |
19 pcall(function () |
20 local mods = module:get_option_inherited_set("modules_enabled") - module:get_option_inherited_set("modules_disabled"); |
20 module:depends("bookmarks"); |
21 if not mods:contains("bookmarks") or mods:contains("bookmarks2") then |
21 end); |
22 module:log("warn", "Converse.js does not work well without mod_bookmarks, consider enabling it"); |
|
23 end |
|
24 end |
|
25 |
22 |
26 local cdn_url = module:get_option_string("conversejs_cdn", "https://cdn.conversejs.org"); |
23 local cdn_url = module:get_option_string("conversejs_cdn", "https://cdn.conversejs.org"); |
27 |
24 |
28 local version = module:get_option_string("conversejs_version", ""); |
25 local version = module:get_option_string("conversejs_version", ""); |
29 if version ~= "" then version = "/" .. version end |
26 if version ~= "" then version = "/" .. version end |