1
0
mirror of https://github.com/bitwarden/web synced 2025-12-12 22:33:23 +00:00

icons url for self hosted instances

This commit is contained in:
Kyle Spearrin
2017-10-23 18:11:29 -04:00
parent 4323341d19
commit b52ecd8085
7 changed files with 10 additions and 10 deletions

View File

@@ -189,7 +189,7 @@ angular
};
function setLoginIcon(cipher, uri, setImage) {
if (!appSettings.selfHosted && !_service.disableWebsiteIcons && uri) {
if (!_service.disableWebsiteIcons && uri) {
var hostnameUri = uri,
isWebsite = false;
@@ -210,7 +210,7 @@ angular
if (setImage && isWebsite) {
try {
var url = new URL(hostnameUri);
cipher.meta.image = 'https://icons.bitwarden.com/' + url.hostname + '/icon.png';
cipher.meta.image = appSettings.iconsUri + '/' + url.hostname + '/icon.png';
}
catch (e) { }
}