Added "Running" title when hovering running game

This commit is contained in:
Jorys_Paulin 2018-06-09 10:45:27 +02:00
parent 50d21da453
commit 5a30f4c983

View File

@ -439,7 +439,13 @@ function removeClicked(host) {
function stylizeBoxArt(freshApi, appIdToStylize) {
// If the running game is the good one then style it
var el = document.querySelector("#game-" + appIdToStylize);
return (freshApi.currentGame === appIdToStylize) ? el.classList.add('current-game') : el.classList.remove('current-game')
if(freshApi.currentGame === appIdToStylize) {
el.classList.add('current-game')
el.title += ' (Running)'
} else {
el.classList.remove('current-game')
el.title.replace(' (Running)', '') // TODO: Replace with localized string so make it e.title = game_title
}
}
function sortTitles(list, sortOrder) {