Skip to content

Commit

Permalink
If we have the info, default to Sort by Favourited - fix espruino/Ban…
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Apr 9, 2024
1 parent b4224cd commit 1deedec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ if (Const.APP_USAGE_JSON) httpGet(Const.APP_USAGE_JSON).then(jsonTxt=>{
document.querySelector(".sort-nav").classList.remove("hidden");
document.querySelector(".sort-nav label[sortid='installs']").classList.remove("hidden");
document.querySelector(".sort-nav label[sortid='favourites']").classList.remove("hidden");
// actually set to sort on favourites
if (activeSort != "favourites") {
activeSort = "favourites";
refreshSort();
refreshLibrary();
}
}).catch(err=>{
console.log("No recent.csv - app sort disabled");
});
Expand Down

0 comments on commit 1deedec

Please sign in to comment.