Переглянути джерело

Fix prefix path when loading Hydrogen's theme-element.json

This is needed when using a prefix path that doesn't end with a slash.

Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
pull/2712/head
Sergio Durigan Junior 2 роки тому
джерело
коміт
dca6db15da
1 змінених файлів з 1 додано та 1 видалено
  1. +1
    -1
      roles/custom/matrix-client-hydrogen/templates/config.json.j2

+ 1
- 1
roles/custom/matrix-client-hydrogen/templates/config.json.j2 Переглянути файл

@@ -3,7 +3,7 @@
"defaultHomeServer": {{ matrix_client_hydrogen_default_hs_url | string | to_json }}, "defaultHomeServer": {{ matrix_client_hydrogen_default_hs_url | string | to_json }},
"bugReportEndpointUrl": {{ matrix_client_hydrogen_bugReportEndpointUrl | to_json }}, "bugReportEndpointUrl": {{ matrix_client_hydrogen_bugReportEndpointUrl | to_json }},
"themeManifests": [ "themeManifests": [
"{{ matrix_client_hydrogen_path_prefix }}assets/theme-element.json"
"{{ '' if matrix_client_hydrogen_path_prefix == '/' else matrix_client_hydrogen_path_prefix }}/assets/theme-element.json"
], ],
"defaultTheme": { "defaultTheme": {
"light": "element-light", "light": "element-light",


Завантаження…
Відмінити
Зберегти