Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Commit

Permalink
[#314] added logic to removeMissingProjects to set a new active proje…
Browse files Browse the repository at this point in the history
…ct after missing projects have been removed from localStorage
  • Loading branch information
hermwong committed Mar 9, 2015
1 parent 2511d2d commit 7b3c14b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion www/js/local-storage.js
Expand Up @@ -92,7 +92,12 @@ function removeMissingProjects() {

localStorage["projects"] = JSON.stringify(projects);

console.log(JSON.stringify(projects));
console.log(JSON.stringify(projects));

// if there are still projects remaining, set an active widget
if (index > 0) {
setActiveWidget(projects[0].id, projects[0].projDir);
}

}

Expand Down

0 comments on commit 7b3c14b

Please sign in to comment.