chore: linting

This commit is contained in:
Roberto Tonino 2021-06-02 15:40:21 +02:00
parent 599b6aecc2
commit 58642b6d48
1 changed files with 6 additions and 2 deletions

View File

@ -900,7 +900,7 @@ export default {
socket.on('updateSettings', this.updateSettings) socket.on('updateSettings', this.updateSettings)
socket.on('accountChanged', this.accountChanged) socket.on('accountChanged', this.accountChanged)
socket.on('familyAccounts', this.initAccounts) socket.on('familyAccounts', this.initAccounts)
if (this.clientMode){ if (this.clientMode) {
window.api.receive('downloadFolderSelected', this.downloadFolderSelected) window.api.receive('downloadFolderSelected', this.downloadFolderSelected)
window.api.receive('applogin_arl', this.loggedInViaDeezer) window.api.receive('applogin_arl', this.loggedInViaDeezer)
} }
@ -1026,7 +1026,11 @@ export default {
const { email } = fromLoginForm('email') const { email } = fromLoginForm('email')
const { password } = fromLoginForm('password') const { password } = fromLoginForm('password')
const { accessToken, arl } = await postToServer('loginWithCredentials', { email, password, accessToken: this.accessToken}) const { accessToken, arl } = await postToServer('loginWithCredentials', {
email,
password,
accessToken: this.accessToken
})
if (accessToken !== this.accessToken) this.dispatchAccessTocken({ accessToken }) if (accessToken !== this.accessToken) this.dispatchAccessTocken({ accessToken })
if (arl) this.login(arl) if (arl) this.login(arl)