refactor: separated import code into it’s component chunks to allow for updating a ROM’s link to a platform and/or game

This commit is contained in:
Michael Green
2023-06-28 13:23:10 +10:00
parent ee4e5d4037
commit f5cfe9deb6
2 changed files with 197 additions and 156 deletions

View File

@@ -99,6 +99,11 @@
artworks = result.artworks.ids;
artworksPostition = 0;
rotateBackground();
} else {
if (result.cover) {
var bg = document.getElementById('bgImage');
bg.setAttribute('style', 'background-image: url("/api/v1/Games/' + gameId + '/cover/image"); background-position: center; background-repeat: no-repeat; background-size: cover; filter: blur(10px); -webkit-filter: blur(10px);');
}
}
// load cover