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