From 17e36e7a4d368995b41ffda358e968396695bb5f Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sun, 29 Jan 2017 21:32:35 -0500 Subject: [PATCH] dont show new login notification bar on bitwarden websites --- src/content/notificationBar.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/content/notificationBar.js b/src/content/notificationBar.js index 16c7528e71..888a22123e 100644 --- a/src/content/notificationBar.js +++ b/src/content/notificationBar.js @@ -3,13 +3,15 @@ formData = [], barType = null; - chrome.storage.local.get('disableAddLoginNotification', function (obj) { - if (!obj || !obj['disableAddLoginNotification']) { - chrome.runtime.sendMessage({ - command: 'bgCollectPageDetails' - }); - } - }); + 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.runtime.onMessage.addListener(function (msg, sender, sendResponse) { if (msg.command === 'openNotificationBar') {