upd: prompt for confirmation on external links
This commit is contained in:
parent
e21e2530e6
commit
d2564836ed
4 changed files with 28 additions and 3 deletions
|
|
@ -97,6 +97,7 @@ function createPluginEnv(opts: { plugin: Plugin; storageKey: string }): Record<s
|
|||
const { canceled } = await os.confirm({
|
||||
type: 'question',
|
||||
text: i18n.tsx.confirmRemoteUrl({x: url.value}),
|
||||
plain: true,
|
||||
});
|
||||
if (canceled) return;
|
||||
window.open(url.value, '_blank', 'noopener');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue