ES5 → 7: Use for in/of and let

This commit is contained in:
miruka
2019-07-18 05:18:13 -04:00
parent 8a38274280
commit 1fa8b70359
12 changed files with 59 additions and 77 deletions

View File

@@ -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 => {

View File

@@ -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})