Software /
code /
prosody-modules
Comparison
mod_conversejs/mod_conversejs.lua @ 4849:192b7aaa3888
mod_conversejs: Try to depend on mod_bookmarks in trunk else mod_bookmarks2
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 05 Jan 2022 21:22:13 +0100 |
parent | 4843:60887967b797 |
child | 4855:0c9128145bcf |
comparison
equal
deleted
inserted
replaced
4848:5001104f0275 | 4849:192b7aaa3888 |
---|---|
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 pcall(function () | 19 if not pcall(function() |
20 module:depends("bookmarks2"); | 20 module:depends("bookmarks"); |
21 end); | 21 end) then |
22 pcall(function() | |
23 module:depends("bookmarks2") | |
24 end); | |
25 end | |
22 | 26 |
23 local cdn_url = module:get_option_string("conversejs_cdn", "https://cdn.conversejs.org"); | 27 local cdn_url = module:get_option_string("conversejs_cdn", "https://cdn.conversejs.org"); |
24 | 28 |
25 local version = module:get_option_string("conversejs_version", ""); | 29 local version = module:get_option_string("conversejs_version", ""); |
26 if version ~= "" then version = "/" .. version end | 30 if version ~= "" then version = "/" .. version end |