🐛 我真傻,真的

This commit is contained in:
BTMuli
2023-11-16 23:58:17 +08:00
parent 54d2e27054
commit 630a64323d
2 changed files with 2 additions and 3 deletions

View File

@@ -429,8 +429,7 @@ class TGClient {
async closePage(): Promise<void> {
this.route.pop();
if (this.route.length === 0) {
await this.open("");
await this.window?.hide();
await this.window?.close();
return;
}
const url = this.route[this.route.length - 1];