mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
Added message when gamelist empty
This commit is contained in:
parent
78c32035f8
commit
492ee0dc61
@ -493,6 +493,11 @@ function showApps(host) {
|
|||||||
$('#naclSpinner').css('display', 'inline-block');
|
$('#naclSpinner').css('display', 'inline-block');
|
||||||
|
|
||||||
host.getAppList().then(function(appList) {
|
host.getAppList().then(function(appList) {
|
||||||
|
if(appList.length == 0) { // TODO: Add placeholder graphic
|
||||||
|
console.error('%c[index.js, showApps]', 'User\'s applist is empty')
|
||||||
|
snackbarLog('Your game list is empty')
|
||||||
|
return; // We stop the function right here
|
||||||
|
}
|
||||||
// if game grid is populated, empty it
|
// if game grid is populated, empty it
|
||||||
$("div.game-container").remove();
|
$("div.game-container").remove();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user