mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
poll full sync on interval. broadcast messages from background
This commit is contained in:
@@ -86,6 +86,8 @@ angular
|
||||
};
|
||||
|
||||
$scope.$on('syncCompleted', function (event, args) {
|
||||
setTimeout(loadVault, 500);
|
||||
if ($scope.loaded) {
|
||||
setTimeout(loadVault, 500);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -15,4 +15,13 @@
|
||||
self.animation = '';
|
||||
}
|
||||
});
|
||||
|
||||
chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
|
||||
if (msg.command === 'syncCompleted') {
|
||||
$scope.$broadcast('syncCompleted');
|
||||
}
|
||||
else if (msg.command === 'syncStarted') {
|
||||
$scope.$broadcast('syncStarted');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -109,7 +109,9 @@
|
||||
};
|
||||
|
||||
$scope.$on('syncCompleted', function (event, args) {
|
||||
setTimeout(loadVault, 500);
|
||||
if ($scope.loaded) {
|
||||
setTimeout(loadVault, 500);
|
||||
}
|
||||
});
|
||||
|
||||
function getScrollY() {
|
||||
|
||||
Reference in New Issue
Block a user