open external link

This commit is contained in:
pypy
2020-03-21 15:30:13 +09:00
parent d10a149de5
commit 2db0d6294c
3 changed files with 22 additions and 6 deletions

View File

@@ -3179,6 +3179,19 @@ CefSharp.BindObjectAsync(
}
};
$app.methods.openExternalLink = function (link) {
this.$confirm(`${link}`, 'Open External Link', {
confirmButtonText: 'Confirm',
cancelButtonText: 'Cancel',
type: 'info',
callback: (action) => {
if (action === 'confirm') {
VRCX.OpenLink(link);
}
}
});
};
$app.methods.languageClass = function (language) {
var style = {};
var mapping = languageMappings[language];
@@ -3201,7 +3214,7 @@ CefSharp.BindObjectAsync(
text: `Update available!!<br>${this.latestAppVersion}`,
timeout: 60000,
callbacks: {
onClick: () => VRCX.OpenRepository()
onClick: () => VRCX.OpenLink('https://github.com/pypy-vrc/VRCX/releases')
}
}).show();
this.notifyMenu('more');