enhance(frontend): window.openやaタグにnoopenerオプションをつける (MisskeyIO#283)
This commit is contained in:
parent
3c79605460
commit
1c18b23912
12 changed files with 20 additions and 20 deletions
|
|
@ -120,7 +120,7 @@ const headerActions = $computed(() => [{
|
|||
text: i18n.ts.openInNewTab,
|
||||
icon: 'ti ti-external-link',
|
||||
handler: () => {
|
||||
window.open(file.url, '_blank');
|
||||
window.open(file.url, '_blank', 'noopener');
|
||||
},
|
||||
}]);
|
||||
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ const headerActions = $computed(() => [{
|
|||
icon: 'ti ti-external-link',
|
||||
text: i18n.ts.dashboard,
|
||||
handler: () => {
|
||||
window.open(config.url + '/queue', '_blank');
|
||||
window.open(config.url + '/queue', '_blank', 'noopener');
|
||||
},
|
||||
}]);
|
||||
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ const headerActions = $computed(() => [{
|
|||
text: `https://${props.host}`,
|
||||
icon: 'ti ti-external-link',
|
||||
handler: () => {
|
||||
window.open(`https://${props.host}`, '_blank');
|
||||
window.open(`https://${props.host}`, '_blank', 'noopener');
|
||||
},
|
||||
}]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue