mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
Idea for #875
This commit is contained in:
parent
188b419910
commit
d65d77ef2f
3 changed files with 42 additions and 23 deletions
|
|
@ -79,6 +79,10 @@ export const
|
|||
* @returns {string}
|
||||
*/
|
||||
themePreviewLink = theme => {
|
||||
if (theme.endsWith('@nextcloud')) {
|
||||
theme = theme.slice(0, theme.length - 10).trim();
|
||||
return OC().webroot + '/themes/' + encodeURI(theme) + '/snappymail.png';
|
||||
}
|
||||
let path = 'webVersionPath';
|
||||
if (theme.endsWith('@custom')) {
|
||||
theme = theme.slice(0, theme.length - 7).trim();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue