Added message when gamelist empty

This commit is contained in:
Jorys_Paulin 2018-05-01 09:50:51 +02:00
parent 78c32035f8
commit 492ee0dc61

View File

@ -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();