mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2026-06-11 07:57:28 +00:00
fix(security): add noopener,noreferrer to all window.open calls
Prevent reverse tabnapping by adding security attributes to all window.open calls that open links in new tabs.
This commit is contained in:
@@ -1178,7 +1178,7 @@ function parseById(shareLinkInfo, http, logger) {
|
||||
|
||||
// 新窗口打开首页
|
||||
const goHomeInNewWindow = () => {
|
||||
window.open('/', '_blank');
|
||||
window.open('/', '_blank', 'noopener,noreferrer');
|
||||
};
|
||||
|
||||
// 检查是否有未保存的文件
|
||||
|
||||
Reference in New Issue
Block a user