upd: prompt for confirmation on external links

This commit is contained in:
Marie 2024-09-16 01:12:20 +02:00
parent e21e2530e6
commit d2564836ed
No known key found for this signature in database
GPG key ID: 7ADF6C9CD9A28555
4 changed files with 28 additions and 3 deletions

View file

@ -245,6 +245,7 @@ export function confirm(props: {
text?: string;
okText?: string;
cancelText?: string;
plain?: boolean;
}): Promise<{ canceled: boolean }> {
return new Promise(resolve => {
const { dispose } = popup(MkDialog, {