From ab5d2eca1fbdbd17a4913229cd5812337d9ed7be Mon Sep 17 00:00:00 2001 From: まっちゃとーにゅ <17376330+u1-liquid@users.noreply.github.com> Date: Fri, 8 Dec 2023 17:48:18 +0900 Subject: enhance(frontend): window.openやaタグにnoopenerオプションをつける (MisskeyIO#283) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/pages/admin-file.vue | 2 +- packages/frontend/src/pages/admin/queue.vue | 2 +- packages/frontend/src/pages/instance-info.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/frontend/src/pages') diff --git a/packages/frontend/src/pages/admin-file.vue b/packages/frontend/src/pages/admin-file.vue index aefff69c60..dd61aea4c7 100644 --- a/packages/frontend/src/pages/admin-file.vue +++ b/packages/frontend/src/pages/admin-file.vue @@ -120,7 +120,7 @@ const headerActions = computed(() => [{ text: i18n.ts.openInNewTab, icon: 'ti ti-external-link', handler: () => { - window.open(file.value.url, '_blank'); + window.open(file.value.url, '_blank', 'noopener'); }, }]); diff --git a/packages/frontend/src/pages/admin/queue.vue b/packages/frontend/src/pages/admin/queue.vue index f07fba8d15..5a8f960cf6 100644 --- a/packages/frontend/src/pages/admin/queue.vue +++ b/packages/frontend/src/pages/admin/queue.vue @@ -56,7 +56,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'); }, }]); diff --git a/packages/frontend/src/pages/instance-info.vue b/packages/frontend/src/pages/instance-info.vue index 93d74fb42e..97dc0a8633 100644 --- a/packages/frontend/src/pages/instance-info.vue +++ b/packages/frontend/src/pages/instance-info.vue @@ -218,7 +218,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'); }, }]); -- cgit v1.2.3-freya