mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +00:00
Added "Running" title when hovering running game
This commit is contained in:
parent
50d21da453
commit
5a30f4c983
@ -439,7 +439,13 @@ function removeClicked(host) {
|
|||||||
function stylizeBoxArt(freshApi, appIdToStylize) {
|
function stylizeBoxArt(freshApi, appIdToStylize) {
|
||||||
// If the running game is the good one then style it
|
// If the running game is the good one then style it
|
||||||
var el = document.querySelector("#game-" + appIdToStylize);
|
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) {
|
function sortTitles(list, sortOrder) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user