Skip to content

Commit

Permalink
[phonegap#314] added logic to removeMissingProjects to set a new acti…
Browse files Browse the repository at this point in the history
…ve project after missing projects have been removed from localStorage

Former-commit-id: c3d21aa
  • Loading branch information
hermwong committed Apr 8, 2015
1 parent 5f9bda1 commit 6810d8b
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 6810d8b

Please sign in to comment.