1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

poll full sync on interval. broadcast messages from background

This commit is contained in:
Kyle Spearrin
2016-09-21 00:26:23 -04:00
parent 2e56a956db
commit 8d458d1762
5 changed files with 27 additions and 5 deletions

View File

@@ -169,10 +169,12 @@ function initSyncService() {
function syncStarted() {
this.syncInProgress = true;
chrome.runtime.sendMessage(null, { command: 'syncStarted' });
}
function syncCompleted(successfully) {
this.syncInProgress = false;
chrome.runtime.sendMessage(null, { command: 'syncCompleted', successfully: successfully });
}
function handleError() {