timeout on first collectIfNeeded
This commit is contained in:
parent
6896822863
commit
f491515904
|
@ -19,7 +19,10 @@
|
|||
|
||||
chrome.storage.local.get('disableAddLoginNotification', function (obj) {
|
||||
if (!obj || !obj.disableAddLoginNotification) {
|
||||
collectIfNeeded();
|
||||
if (collectIfNeededTimeout) {
|
||||
clearTimeout(collectIfNeededTimeout);
|
||||
}
|
||||
collectIfNeededTimeout = setTimeout(collectIfNeeded, 1000);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue