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

@ -22,7 +22,7 @@ const Events = {
if (event.keyCode === 82 && event.ctrlKey) {
event.preventDefault()
bootbox.confirm("Reload Cider?", (res)=>{
if(res) {
if (res) {
window.location.reload()
}
})

View file

@ -251,7 +251,7 @@ function simulateGamepad () {
cursorPos[1] -= cursorSpeed
// sounds.Hover.play()
// if(intTabIndex <= 0) {
// if (intTabIndex <= 0) {
// intTabIndex = 0
// }else{
// intTabIndex--
@ -263,7 +263,7 @@ function simulateGamepad () {
e.preventDefault()
cursorPos[1] += cursorSpeed
// if(intTabIndex < tabbable.length) {
// if (intTabIndex < tabbable.length) {
// intTabIndex++
// }else{
// intTabIndex = tabbable.length

View file

@ -1671,7 +1671,7 @@ const app = new Vue({
params["meta[albums:tracks]"] = 'popularity'
params["fields[albums]"] = "artistName,artistUrl,artwork,contentRating,editorialArtwork,editorialNotes,editorialVideo,name,playParams,releaseDate,url,copyright"
}
if(kind.includes("playlist") || kind.includes("album")){
if (kind.includes("playlist") || kind.includes("album")){
app.page = (kind) + "_" + (id);
window.location.hash = `${kind}/${id}${isLibrary ? "/" + isLibrary : ''}`
app.getTypeFromID((kind), (id), (isLibrary), params);

View file

@ -108,9 +108,9 @@ const wsapi = {
app.mk.isPlaying ? app.mk.pause() : app.mk.play()
},
toggleRepeat() {
if(MusicKit.getInstance().repeatMode == 0) {
if (MusicKit.getInstance().repeatMode == 0) {
MusicKit.getInstance().repeatMode = 1
}else if(MusicKit.getInstance().repeatMode == 1){
}else if (MusicKit.getInstance().repeatMode == 1){
MusicKit.getInstance().repeatMode = 2
}else{
MusicKit.getInstance().repeatMode = 0