enhance(frontend): window.openやaタグにnoopenerオプションをつける (MisskeyIO#283)
This commit is contained in:
parent
c54d1cdde2
commit
ab5d2eca1f
12 changed files with 20 additions and 20 deletions
|
@ -96,7 +96,7 @@ function createPluginEnv(opts: { plugin: Plugin; storageKey: string }): Record<s
|
|||
}),
|
||||
'Plugin:open_url': values.FN_NATIVE(([url]) => {
|
||||
utils.assertString(url);
|
||||
window.open(url.value, '_blank');
|
||||
window.open(url.value, '_blank', 'noopener');
|
||||
}),
|
||||
'Plugin:config': values.OBJ(config),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue