Comparison

mod_conversejs/mod_conversejs.lua @ 4891:99cdc7cde150

mod_conversejs: Revert back to depending on mod_bookmarks
author Kim Alvefur <zash@zash.se>
date Wed, 09 Feb 2022 18:16:33 +0100
parent 4855:0c9128145bcf
child 4914:f2c918fe8cf0
comparison
equal deleted inserted replaced
4890:347894e08b4f 4891:99cdc7cde150
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