mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
wait for docuement content to load before initializing notification bar
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
!(function () {
|
document.addEventListener('DOMContentLoaded', function (event) {
|
||||||
var pageDetails = [],
|
var pageDetails = [],
|
||||||
formData = [],
|
formData = [],
|
||||||
barType = null;
|
barType = null;
|
||||||
|
|
||||||
chrome.runtime.sendMessage({
|
setTimeout(function () {
|
||||||
command: 'bgCollectPageDetails'
|
chrome.runtime.sendMessage({
|
||||||
});
|
command: 'bgCollectPageDetails'
|
||||||
|
});
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
|
chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
|
||||||
if (msg.command === 'openNotificationBar') {
|
if (msg.command === 'openNotificationBar') {
|
||||||
@@ -161,4 +163,4 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})();
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user