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/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/frontend/src/plugin.ts') diff --git a/packages/frontend/src/plugin.ts b/packages/frontend/src/plugin.ts index e24f646a35..5e49af4858 100644 --- a/packages/frontend/src/plugin.ts +++ b/packages/frontend/src/plugin.ts @@ -96,7 +96,7 @@ function createPluginEnv(opts: { plugin: Plugin; storageKey: string }): Record { utils.assertString(url); - window.open(url.value, '_blank'); + window.open(url.value, '_blank', 'noopener'); }), 'Plugin:config': values.OBJ(config), }; -- cgit v1.2.3-freya