summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-11-03 16:21:28 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-11-03 16:21:28 +0900
commit99209d36e1af2929582a2eafc39898b4083036be (patch)
treecf18da9393814d5ce0f656ef579f7cce11cd09af /src
parentRefactoring (diff)
downloadmisskey-99209d36e1af2929582a2eafc39898b4083036be.tar.gz
misskey-99209d36e1af2929582a2eafc39898b4083036be.tar.bz2
misskey-99209d36e1af2929582a2eafc39898b4083036be.zip
Fix bug of c3ae6f3a4
Diffstat (limited to 'src')
-rw-r--r--src/client/os.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/client/os.ts b/src/client/os.ts
index 898b876589..e917f8a4a3 100644
--- a/src/client/os.ts
+++ b/src/client/os.ts
@@ -300,8 +300,8 @@ export function modalMenu(items: any[], src?: HTMLElement, options?: { align?: s
resolve();
dispose();
},
- }).then(_dispose => {
- dispose = _dispose;
+ }).then(res => {
+ dispose = res.dispose;
});
});
}
@@ -318,8 +318,8 @@ export function contextMenu(items: any[], ev: MouseEvent) {
resolve();
dispose();
},
- }).then(_dispose => {
- dispose = _dispose;
+ }).then(res => {
+ dispose = res.dispose;
});
});
}
@@ -337,8 +337,8 @@ export function post(props: Record<string, any>) {
resolve();
dispose();
},
- }).then(_dispose => {
- dispose = _dispose;
+ }).then(res => {
+ dispose = res.dispose;
});
});
}