mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 03:32:34 +08:00
a6ad71c19f
- 替换大多数let为const - 将一些双等号替换为三等号 - 距离计算追加“玩家自己与距离为0”设定,副作用是不显示自身距离
16 lines
375 B
JavaScript
16 lines
375 B
JavaScript
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
callbacks["UpdateAvatar"] = (jsonData) => {
|
|
mainWindow.busy = false;
|
|
Self.avatar = jsonData;
|
|
toast.show("Update avatar done.");
|
|
}
|
|
|
|
callbacks["UpdatePassword"] = (jsonData) => {
|
|
mainWindow.busy = false;
|
|
if (jsonData === "1")
|
|
toast.show("Update password done.");
|
|
else
|
|
toast.show("Old password wrong!", 5000);
|
|
}
|