diff options
author | Marius David Wieschollek <passwords.public@mdns.eu> | 2020-05-02 17:18:42 +0300 |
---|---|---|
committer | Marius David Wieschollek <passwords.public@mdns.eu> | 2020-05-02 17:18:42 +0300 |
commit | b2355218b126c35f3c8e4ce7e0929c056011bc2b (patch) | |
tree | 64d67235b8da19fe21416e1e85d58a650b3fb5b5 | |
parent | dffd79816c53406658d302a2295e4512808e45d7 (diff) |
Only add baseUrl to bgImage if not a full url
Signed-off-by: Marius David Wieschollek <passwords.public@mdns.eu>
-rw-r--r-- | src/PassLink/Action/Connect.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PassLink/Action/Connect.js b/src/PassLink/Action/Connect.js index 681d745..ede84b3 100644 --- a/src/PassLink/Action/Connect.js +++ b/src/PassLink/Action/Connect.js @@ -115,7 +115,7 @@ export default class Connect extends PassLinkAction { theme['color.background'] = theme.bgColor; delete theme.bgColor; } - if(theme.hasOwnProperty('background')) { + if(theme.hasOwnProperty('background') && theme.background.substr(0, 8) !== 'https://') { theme.background = this._parameters.baseUrl + theme.background; } if(theme.hasOwnProperty('logo')) { |