Commit 4f3d02b6 by Jason Song Committed by GitHub

Merge pull request #366 from lepdou/0801_0805

fix when localStorage visited apps empty
parents 9f59eddd 03b0da66
......@@ -36,7 +36,7 @@ index_module.controller('IndexController', ['$scope', '$window', 'toastr', 'AppS
function sortApps(sourceApps) {
var visitedApps = JSON.parse(localStorage.getItem(VISITED_APPS_STORAGE_KEY));
if (!visitedApps){
return;
return sourceApps;
}
var existedVisitedAppsMap = {};
visitedApps.forEach(function (app) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment