mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
dont show new login notification bar on bitwarden websites
This commit is contained in:
@@ -3,13 +3,15 @@
|
|||||||
formData = [],
|
formData = [],
|
||||||
barType = null;
|
barType = null;
|
||||||
|
|
||||||
chrome.storage.local.get('disableAddLoginNotification', function (obj) {
|
if (window.location.hostname.indexOf('bitwarden.com') === -1) {
|
||||||
if (!obj || !obj['disableAddLoginNotification']) {
|
chrome.storage.local.get('disableAddLoginNotification', function (obj) {
|
||||||
chrome.runtime.sendMessage({
|
if (!obj || !obj['disableAddLoginNotification']) {
|
||||||
command: 'bgCollectPageDetails'
|
chrome.runtime.sendMessage({
|
||||||
});
|
command: 'bgCollectPageDetails'
|
||||||
}
|
});
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
|
chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
|
||||||
if (msg.command === 'openNotificationBar') {
|
if (msg.command === 'openNotificationBar') {
|
||||||
|
|||||||
Reference in New Issue
Block a user