Change }else to } else

This commit is contained in:
Amaru8 2022-04-30 21:28:18 +02:00
parent 9c85fafd1d
commit 422c869568
11 changed files with 24 additions and 24 deletions

View file

@ -28,7 +28,7 @@ export class Plugins {
public static getPluginFromMap(plugin: string): any {
if (Plugins.PluginMap[plugin]) {
return Plugins.PluginMap[plugin];
}else{
} else{
return plugin;
}
}

View file

@ -253,7 +253,7 @@ function simulateGamepad () {
// sounds.Hover.play()
// if (intTabIndex <= 0) {
// intTabIndex = 0
// }else{
// } else{
// intTabIndex--
// }
// $(tabbable[intTabIndex]).focus()
@ -265,7 +265,7 @@ function simulateGamepad () {
cursorPos[1] += cursorSpeed
// if (intTabIndex < tabbable.length) {
// intTabIndex++
// }else{
// } else{
// intTabIndex = tabbable.length
// }
// $(tabbable[intTabIndex]).focus()

View file

@ -1675,7 +1675,7 @@ const app = new Vue({
app.page = (kind) + "_" + (id);
window.location.hash = `${kind}/${id}${isLibrary ? "/" + isLibrary : ''}`
app.getTypeFromID((kind), (id), (isLibrary), params);
}else{
} else{
app.page = (kind)
window.location.hash = `${kind}/${id}${isLibrary ? "/" + isLibrary : ''}`
}

View file

@ -110,9 +110,9 @@ const wsapi = {
toggleRepeat() {
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{
} else{
MusicKit.getInstance().repeatMode = 0
}
},

View file

@ -137,7 +137,7 @@ function downloadChunk () {
app.mk.api.library.songs("", {limit: 100}, {includeResponseMeta: !0}).then((response)=>{
processChunk(response)
})
}else{
} else{
downloaded.next("", {limit: 100}, {includeResponseMeta: !0}).then((response)=>{
processChunk(response)
})

View file

@ -78,7 +78,7 @@
getVideoPriority() {
if (app.cfg.visual.animated_artwork == "always") {
return true;
}else if (this.videoPriority && app.cfg.visual.animated_artwork == "limited") {
} else if (this.videoPriority && app.cfg.visual.animated_artwork == "limited") {
return true
} else if (app.cfg.visual.animated_artwork == "disabled") {
return false

View file

@ -185,7 +185,7 @@
} else {
return this.item.attributes.playParams.kind
}
}else{
} else{
return this.item.type
}
},

View file

@ -97,7 +97,7 @@
if (this.item.attributes.playParams.kind.includes("radioStation") && (this.item.attributes.playParams.streamingKind == 1 || this.item.attributes.playParams.streamingKind == 2)) {
this.unavailable = true
}
}else{
} else{
if (this.item.type == "music-movies" || this.item.type == "tv-episodes") {
this.unavailable = true
}
@ -130,7 +130,7 @@
}catch(e) {
return ''
}
}else {
} else {
if (typeof this.item.attributes.artistName != "undefined") {
return this.item.attributes.artistName
} else {
@ -153,7 +153,7 @@
}catch(e) {
return app.routeView(this.item)
}
}else {
} else {
if (typeof this.item.attributes.artistName != "undefined") {
return app.searchAndNavigate(this.item,'artist')
} else {
@ -234,7 +234,7 @@
}
if (!includeUrl) {
return artwork
}else{
} else{
return `url("${artwork}")`
}
},
@ -442,7 +442,7 @@
if (self.item.relationships.catalog){
app.mkapi(self.item.attributes.playParams.kind, false, self.item.relationships.catalog.data[0].id).then(u => {self.app.copyToClipboard((u.data.data.length && u.data.data.length > 0)? u.data.data[0].attributes.url : u.data.data.attributes.url)})
}
}else {
} else {
self.app.copyToClipboard(self.item.attributes.url)}
}
},
@ -454,7 +454,7 @@
if (self.item.relationships.catalog){
app.mkapi(self.item.attributes.playParams.kind, false, self.item.relationships.catalog.data[0].id).then(u => {self.app.songLinkShare((u.data.data.length && u.data.data.length > 0)? u.data.data[0].attributes.url : u.data.data.attributes.url)})
}
}else {
} else {
self.app.songLinkShare(self.item.attributes.url)}
}
}
@ -474,7 +474,7 @@
if (self.addedToLibrary) {
menus.normal.items.find(x => x.id == 'addToLibrary').hidden = true
menus.normal.items.find(x => x.id == 'removeFromLibrary').hidden = false
}else{
} else{
menus.normal.items.find(x => x.id == 'addToLibrary').disabled = false
}
})

View file

@ -134,7 +134,7 @@
bootbox.confirm(app.getLz("settings.prompt.visual.plugin.github.success"), (ok)=>{
if (ok) {
ipcRenderer.invoke("relaunchApp")
}else{
} else{
return
}
})
@ -156,7 +156,7 @@
bootbox.confirm(app.getLz("settings.prompt.visual.plugin.github.success"), (ok)=>{
if (ok) {
ipcRenderer.invoke("relaunchApp")
}else{
} else{
return
}
})

View file

@ -1542,7 +1542,7 @@
this.tabIndex = parseInt(window.location.hash.split("/")[1])
console.debug("tabIndex", this.tabIndex)
this.canChangeHash = true
}else{
} else{
this.canChangeHash = true
}
})

View file

@ -86,7 +86,7 @@
if (luma > 140) {
return "#aaaaaa"
}else{
} else{
return color
}
@ -107,7 +107,7 @@
}catch(e) {
return ''
}
}else {
} else {
if (typeof this.item.attributes.artistName != "undefined") {
return this.item.attributes.artistName
} else {
@ -130,7 +130,7 @@
}catch(e) {
return app.routeView(this.item)
}
}else {
} else {
if (typeof this.item.attributes.artistName != "undefined") {
return app.searchAndNavigate(this.item,'artist')
} else {
@ -210,7 +210,7 @@
}
if (!includeUrl) {
return artwork
}else{
} else{
return `url("${artwork}")`
}
},
@ -426,7 +426,7 @@
if (self.addedToLibrary) {
menus.normal.items.find(x => x.id == 'addToLibrary').hidden = true
menus.normal.items.find(x => x.id == 'removeFromLibrary').hidden = false
}else{
} else{
menus.normal.items.find(x => x.id == 'addToLibrary').disabled = false
}
})