1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-22 08:14:07 +02:00

fix(frontend): ログインダイアログが表示されたあとの処理がおかしくなる問題を修正 (#17038)

* fix(frontend): ログインダイアログが表示されたあとの処理がおかしくなる問題を修正

* Update Changelog
This commit is contained in:
かっこかり
2026-01-02 21:38:53 +09:00
committed by GitHub
parent 443e1ed29e
commit a1ba403f9a
9 changed files with 64 additions and 32 deletions

View File

@@ -48,8 +48,8 @@ export async function pleaseLogin(opts: {
path?: string;
message?: string;
openOnRemote?: OpenOnRemoteOptions;
} = {}) {
if ($i) return;
} = {}): Promise<boolean> {
if ($i != null) return true;
let _openOnRemote: OpenOnRemoteOptions | undefined = undefined;
@@ -71,5 +71,5 @@ export async function pleaseLogin(opts: {
closed: () => dispose(),
});
throw new Error('signin required');
return false;
}