mirror of
https://github.com/bitwarden/web
synced 2025-12-14 23:33:16 +00:00
add option to disable website icons in web vault
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
angular
|
||||
.module('bit.services')
|
||||
|
||||
.factory('cipherService', function (cryptoService, apiService, $q, $window, constants, appSettings) {
|
||||
var _service = {};
|
||||
.factory('cipherService', function (cryptoService, apiService, $q, $window, constants, appSettings, $localStorage) {
|
||||
var _service = {
|
||||
disableWebsiteIcons: $localStorage.disableWebsiteIcons
|
||||
};
|
||||
|
||||
_service.decryptCiphers = function (encryptedCiphers) {
|
||||
if (!encryptedCiphers) throw "encryptedCiphers is undefined or null";
|
||||
@@ -187,7 +189,7 @@ angular
|
||||
};
|
||||
|
||||
function setLoginIcon(cipher, uri, setImage) {
|
||||
if (!appSettings.selfHosted && uri) {
|
||||
if (!appSettings.selfHosted && !_service.disableWebsiteIcons && uri) {
|
||||
var hostnameUri = uri,
|
||||
isWebsite = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user