Mercurial > prosody-modules
diff mod_conversejs/README.markdown @ 5871:1c8197075d04
mod_conversejs: Allow installation as PWA
author | BetaRays <BetaRays@proton.me> |
---|---|
date | Sun, 17 Mar 2024 15:05:29 +0100 |
parents | 47d03db2fca8 |
children |
line wrap: on
line diff
--- a/mod_conversejs/README.markdown Thu Mar 14 09:48:30 2024 +0000 +++ b/mod_conversejs/README.markdown Sun Mar 17 15:05:29 2024 +0100 @@ -158,6 +158,34 @@ The example above uses the `[[` and `]]` syntax simply because it will not conflict with any embedded quotes. +Custimizing the generated PWA options +------------------------------------- + +``` {.lua} +conversejs_name = "Service name" -- Also used as the web page title +conversejs_short_name = "Shorter name" +conversejs_description = "Description of the service" +conversejs_manifest_icons = { + { + src = "https://example.com/logo/512.png", + sizes = "512x512", + }, + { + src = "https://example.com/logo/192.png", + sizes = "192x192", + }, + { + src = "https://example.com/logo/192.svg", + sizes = "192x192", + }, + { + src = "https://example.com/logo/512.svg", + sizes = "512x512", + }, +} +conversejs_pwa_color = "#397491" +``` + Compatibility =============