Changed if() to if ()

This commit is contained in:
Amaru8 2022-04-30 21:27:00 +02:00
parent 91ac19974c
commit 9c85fafd1d
22 changed files with 44 additions and 44 deletions

View file

@ -90,7 +90,7 @@
return "https://beta.music.apple.com/assets/product/MissingArtworkMusic.svg"
}
height = parseInt(height * window.devicePixelRatio)
if(width) {
if (width) {
width = parseInt(width * window.devicePixelRatio)
}
let newurl = `${url.replace('{w}', width ?? height).replace('{h}', height).replace('{f}', "webp").replace('{c}', ((width === 900) ? "sr" : "cc"))}`;