Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions hyperdrive/packages/app-store/app-store/src/http_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,18 +258,6 @@ if (typeof document !== 'undefined') {
.then(data => {
const container = document.getElementById('latest-apps');
container.innerHTML = '';
// Sort to ensure dial, memedeck, dartfrog are first in that order
const topApps = ['dial', 'memedeck', 'dartfrog'];
data.sort((a, b) => {
const aIndex = topApps.indexOf(a.package_id.package_name);
const bIndex = topApps.indexOf(b.package_id.package_name);
if (aIndex !== -1 && bIndex !== -1) {
return aIndex - bIndex;
}
if (aIndex !== -1) return -1;
if (bIndex !== -1) return 1;
return 0;
});
data.forEach(app => {
if (app.metadata) {
const a = document.createElement('a');
Expand Down