enhance(frontend): window.openやaタグにnoopenerオプションをつける (MisskeyIO#283)

This commit is contained in:
まっちゃとーにゅ 2023-12-08 17:48:18 +09:00 committed by GitHub
parent 3c79605460
commit 1c18b23912
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 20 additions and 20 deletions

View file

@ -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');
},
}]);

View file

@ -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');
},
}]);

View file

@ -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');
},
}]);