提交 4f3d02b6 编写于 作者: J Jason Song 提交者: GitHub

Merge pull request #366 from lepdou/0801_0805

fix when localStorage visited apps empty
......@@ -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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册