Change else{ to else {
This commit is contained in:
parent
422c869568
commit
48cce96bea
10 changed files with 16 additions and 16 deletions
|
@ -28,7 +28,7 @@ export class Plugins {
|
||||||
public static getPluginFromMap(plugin: string): any {
|
public static getPluginFromMap(plugin: string): any {
|
||||||
if (Plugins.PluginMap[plugin]) {
|
if (Plugins.PluginMap[plugin]) {
|
||||||
return Plugins.PluginMap[plugin];
|
return Plugins.PluginMap[plugin];
|
||||||
} else{
|
} else {
|
||||||
return plugin;
|
return plugin;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -253,7 +253,7 @@ function simulateGamepad () {
|
||||||
// sounds.Hover.play()
|
// sounds.Hover.play()
|
||||||
// if (intTabIndex <= 0) {
|
// if (intTabIndex <= 0) {
|
||||||
// intTabIndex = 0
|
// intTabIndex = 0
|
||||||
// } else{
|
// } else {
|
||||||
// intTabIndex--
|
// intTabIndex--
|
||||||
// }
|
// }
|
||||||
// $(tabbable[intTabIndex]).focus()
|
// $(tabbable[intTabIndex]).focus()
|
||||||
|
@ -265,7 +265,7 @@ function simulateGamepad () {
|
||||||
cursorPos[1] += cursorSpeed
|
cursorPos[1] += cursorSpeed
|
||||||
// if (intTabIndex < tabbable.length) {
|
// if (intTabIndex < tabbable.length) {
|
||||||
// intTabIndex++
|
// intTabIndex++
|
||||||
// } else{
|
// } else {
|
||||||
// intTabIndex = tabbable.length
|
// intTabIndex = tabbable.length
|
||||||
// }
|
// }
|
||||||
// $(tabbable[intTabIndex]).focus()
|
// $(tabbable[intTabIndex]).focus()
|
||||||
|
|
|
@ -1675,7 +1675,7 @@ const app = new Vue({
|
||||||
app.page = (kind) + "_" + (id);
|
app.page = (kind) + "_" + (id);
|
||||||
window.location.hash = `${kind}/${id}${isLibrary ? "/" + isLibrary : ''}`
|
window.location.hash = `${kind}/${id}${isLibrary ? "/" + isLibrary : ''}`
|
||||||
app.getTypeFromID((kind), (id), (isLibrary), params);
|
app.getTypeFromID((kind), (id), (isLibrary), params);
|
||||||
} else{
|
} else {
|
||||||
app.page = (kind)
|
app.page = (kind)
|
||||||
window.location.hash = `${kind}/${id}${isLibrary ? "/" + isLibrary : ''}`
|
window.location.hash = `${kind}/${id}${isLibrary ? "/" + isLibrary : ''}`
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,7 +112,7 @@ const wsapi = {
|
||||||
MusicKit.getInstance().repeatMode = 1
|
MusicKit.getInstance().repeatMode = 1
|
||||||
} else if (MusicKit.getInstance().repeatMode == 1){
|
} else if (MusicKit.getInstance().repeatMode == 1){
|
||||||
MusicKit.getInstance().repeatMode = 2
|
MusicKit.getInstance().repeatMode = 2
|
||||||
} else{
|
} else {
|
||||||
MusicKit.getInstance().repeatMode = 0
|
MusicKit.getInstance().repeatMode = 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -137,7 +137,7 @@ function downloadChunk () {
|
||||||
app.mk.api.library.songs("", {limit: 100}, {includeResponseMeta: !0}).then((response)=>{
|
app.mk.api.library.songs("", {limit: 100}, {includeResponseMeta: !0}).then((response)=>{
|
||||||
processChunk(response)
|
processChunk(response)
|
||||||
})
|
})
|
||||||
} else{
|
} else {
|
||||||
downloaded.next("", {limit: 100}, {includeResponseMeta: !0}).then((response)=>{
|
downloaded.next("", {limit: 100}, {includeResponseMeta: !0}).then((response)=>{
|
||||||
processChunk(response)
|
processChunk(response)
|
||||||
})
|
})
|
||||||
|
|
|
@ -185,7 +185,7 @@
|
||||||
} else {
|
} else {
|
||||||
return this.item.attributes.playParams.kind
|
return this.item.attributes.playParams.kind
|
||||||
}
|
}
|
||||||
} else{
|
} else {
|
||||||
return this.item.type
|
return this.item.type
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
if (this.item.attributes.playParams.kind.includes("radioStation") && (this.item.attributes.playParams.streamingKind == 1 || this.item.attributes.playParams.streamingKind == 2)) {
|
if (this.item.attributes.playParams.kind.includes("radioStation") && (this.item.attributes.playParams.streamingKind == 1 || this.item.attributes.playParams.streamingKind == 2)) {
|
||||||
this.unavailable = true
|
this.unavailable = true
|
||||||
}
|
}
|
||||||
} else{
|
} else {
|
||||||
if (this.item.type == "music-movies" || this.item.type == "tv-episodes") {
|
if (this.item.type == "music-movies" || this.item.type == "tv-episodes") {
|
||||||
this.unavailable = true
|
this.unavailable = true
|
||||||
}
|
}
|
||||||
|
@ -234,7 +234,7 @@
|
||||||
}
|
}
|
||||||
if (!includeUrl) {
|
if (!includeUrl) {
|
||||||
return artwork
|
return artwork
|
||||||
} else{
|
} else {
|
||||||
return `url("${artwork}")`
|
return `url("${artwork}")`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -474,7 +474,7 @@
|
||||||
if (self.addedToLibrary) {
|
if (self.addedToLibrary) {
|
||||||
menus.normal.items.find(x => x.id == 'addToLibrary').hidden = true
|
menus.normal.items.find(x => x.id == 'addToLibrary').hidden = true
|
||||||
menus.normal.items.find(x => x.id == 'removeFromLibrary').hidden = false
|
menus.normal.items.find(x => x.id == 'removeFromLibrary').hidden = false
|
||||||
} else{
|
} else {
|
||||||
menus.normal.items.find(x => x.id == 'addToLibrary').disabled = false
|
menus.normal.items.find(x => x.id == 'addToLibrary').disabled = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -134,7 +134,7 @@
|
||||||
bootbox.confirm(app.getLz("settings.prompt.visual.plugin.github.success"), (ok)=>{
|
bootbox.confirm(app.getLz("settings.prompt.visual.plugin.github.success"), (ok)=>{
|
||||||
if (ok) {
|
if (ok) {
|
||||||
ipcRenderer.invoke("relaunchApp")
|
ipcRenderer.invoke("relaunchApp")
|
||||||
} else{
|
} else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -156,7 +156,7 @@
|
||||||
bootbox.confirm(app.getLz("settings.prompt.visual.plugin.github.success"), (ok)=>{
|
bootbox.confirm(app.getLz("settings.prompt.visual.plugin.github.success"), (ok)=>{
|
||||||
if (ok) {
|
if (ok) {
|
||||||
ipcRenderer.invoke("relaunchApp")
|
ipcRenderer.invoke("relaunchApp")
|
||||||
} else{
|
} else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -1542,7 +1542,7 @@
|
||||||
this.tabIndex = parseInt(window.location.hash.split("/")[1])
|
this.tabIndex = parseInt(window.location.hash.split("/")[1])
|
||||||
console.debug("tabIndex", this.tabIndex)
|
console.debug("tabIndex", this.tabIndex)
|
||||||
this.canChangeHash = true
|
this.canChangeHash = true
|
||||||
} else{
|
} else {
|
||||||
this.canChangeHash = true
|
this.canChangeHash = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -86,7 +86,7 @@
|
||||||
|
|
||||||
if (luma > 140) {
|
if (luma > 140) {
|
||||||
return "#aaaaaa"
|
return "#aaaaaa"
|
||||||
} else{
|
} else {
|
||||||
return color
|
return color
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -210,7 +210,7 @@
|
||||||
}
|
}
|
||||||
if (!includeUrl) {
|
if (!includeUrl) {
|
||||||
return artwork
|
return artwork
|
||||||
} else{
|
} else {
|
||||||
return `url("${artwork}")`
|
return `url("${artwork}")`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -426,7 +426,7 @@
|
||||||
if (self.addedToLibrary) {
|
if (self.addedToLibrary) {
|
||||||
menus.normal.items.find(x => x.id == 'addToLibrary').hidden = true
|
menus.normal.items.find(x => x.id == 'addToLibrary').hidden = true
|
||||||
menus.normal.items.find(x => x.id == 'removeFromLibrary').hidden = false
|
menus.normal.items.find(x => x.id == 'removeFromLibrary').hidden = false
|
||||||
} else{
|
} else {
|
||||||
menus.normal.items.find(x => x.id == 'addToLibrary').disabled = false
|
menus.normal.items.find(x => x.id == 'addToLibrary').disabled = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue