recent notes are reloaded if synced

This commit is contained in:
azivner
2017-12-03 10:42:23 -05:00
parent 28bc443914
commit 34f1eb930c
2 changed files with 14 additions and 3 deletions

View File

@@ -33,6 +33,12 @@ const messaging = (function() {
noteEditor.reload();
}
if (data.recent_notes) {
console.log("Reloading recent notes because of background changes");
recentNotes.reload();
}
const changesToPushCountEl = $("#changesToPushCount");
changesToPushCountEl.html(message.changesToPushCount);
}