mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 22:33:50 +02:00
replace element plus components
This commit is contained in:
@@ -403,13 +403,15 @@ function openExternalLink(link) {
|
||||
confirmText: 'Open',
|
||||
cancelText: 'Copy'
|
||||
})
|
||||
// TODO: beforeClose alert dialog
|
||||
.then(({ ok }) => {
|
||||
if (!ok) {
|
||||
.then(({ ok, reason }) => {
|
||||
if (reason === 'cancel') {
|
||||
copyToClipboard(link, 'Link copied to clipboard!');
|
||||
return;
|
||||
}
|
||||
AppApi.OpenLink(link);
|
||||
if (ok) {
|
||||
AppApi.OpenLink(link);
|
||||
return;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user