oncontactsremoved: function(ids) {
// Refresh localStorage if default contact was deleted
if (ids.indexOf(localStorage.id) >= 0) {
- alert("Your default contact has been removed. Please choose another one.");
// Reset localStorage
- localStorage.started = undefined;
+ localStorage.clear();
self.started = false;
// Load start page with temporary content
self.ui.moveToStartPage();
self.ui.loadTemporaryContent();
+
+ alert("Your default contact has been removed. Please choose another one.");
} else {
// Refresh if choose page active
self.ui.refreshIfActivePage("choose");