mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-29 19:35:20 +02:00
fix: add noopener to window.open call in AnnouncementToastProvider
Closes #939
This commit is contained in:
parent
a474c4651c
commit
227fb014d4
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ function showAnnouncementToast(announcement: Announcement) {
|
|||
label: announcement.link.label,
|
||||
onClick: () => {
|
||||
if (announcement.link?.url.startsWith("http")) {
|
||||
window.open(announcement.link.url, "_blank");
|
||||
window.open(announcement.link.url, "_blank", "noopener,noreferrer");
|
||||
} else if (announcement.link?.url) {
|
||||
window.location.href = announcement.link.url;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue