mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-08 09:32:07 +01:00
timeout on first collectIfNeeded
This commit is contained in:
parent
6896822863
commit
f491515904
@ -19,7 +19,10 @@
|
|||||||
|
|
||||||
chrome.storage.local.get('disableAddLoginNotification', function (obj) {
|
chrome.storage.local.get('disableAddLoginNotification', function (obj) {
|
||||||
if (!obj || !obj.disableAddLoginNotification) {
|
if (!obj || !obj.disableAddLoginNotification) {
|
||||||
collectIfNeeded();
|
if (collectIfNeededTimeout) {
|
||||||
|
clearTimeout(collectIfNeededTimeout);
|
||||||
|
}
|
||||||
|
collectIfNeededTimeout = setTimeout(collectIfNeeded, 1000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user