1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 23:33:31 +00:00

never option on save login notification

closes #85
This commit is contained in:
Kyle Spearrin
2017-06-13 13:59:16 -04:00
parent a598f08dce
commit 34696ed85f
8 changed files with 115 additions and 9 deletions

View File

@@ -4,12 +4,19 @@
barType = null;
if (window.location.hostname.indexOf('bitwarden.com') === -1) {
chrome.storage.local.get('disableAddLoginNotification', function (obj) {
if (!obj || !obj['disableAddLoginNotification']) {
chrome.runtime.sendMessage({
command: 'bgCollectPageDetails'
});
chrome.storage.local.get('neverDomains', function (obj) {
var domains = obj['neverDomains'];
if (domains && domains.hasOwnProperty(window.location.hostname)) {
return;
}
chrome.storage.local.get('disableAddLoginNotification', function (obj) {
if (!obj || !obj['disableAddLoginNotification']) {
chrome.runtime.sendMessage({
command: 'bgCollectPageDetails'
});
}
});
});
}