mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
app list is now alphabetically sorted
This commit is contained in:
parent
1a4ea5daf4
commit
8a31d90342
@ -144,6 +144,9 @@ function showAppsPushed() {
|
||||
opt.innerHTML = appList[i].title;
|
||||
$('#selectGame')[0].appendChild(opt);
|
||||
}
|
||||
$("#selectGame").html($("#selectGame option").sort(function (a, b) { // thanks, http://stackoverflow.com/a/7466196/3006365
|
||||
return a.text.toUpperCase() == b.text.toUpperCase() ? 0 : a.text.toUpperCase() < b.text.toUpperCase() ? -1 : 1
|
||||
}));
|
||||
if (api.currentGame != 0) $('#selectGame')[0].value = api.currentGame;
|
||||
gameSelectUpdated(); // default the button to 'Resume Game' if one is running.
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user