ES5 → 7: Use for in/of and let
This commit is contained in:
@@ -21,7 +21,7 @@ HGridLayout {
|
||||
|
||||
if (avatar.changed) {
|
||||
saveButton.avatarChangeRunning = true
|
||||
var path = Qt.resolvedUrl(avatar.imageUrl).replace(/^file:/, "")
|
||||
let path = Qt.resolvedUrl(avatar.imageUrl).replace(/^file:/, "")
|
||||
|
||||
py.callClientCoro(
|
||||
userId, "set_avatar_from_file", [path], response => {
|
||||
|
@@ -27,7 +27,7 @@ Item {
|
||||
|
||||
login: button => {
|
||||
button.loading = true
|
||||
var args = [idField.text, passwordField.text]
|
||||
let args = [idField.text, passwordField.text]
|
||||
|
||||
py.callCoro("login_client", args, userId => {
|
||||
pageStack.showPage("RememberAccount", {loginWith, userId})
|
||||
|
Reference in New Issue
Block a user