fix: include nooppener in window.open

This commit is contained in:
Scott Wilson
2025-06-23 18:05:48 -07:00
parent 8ed0a1de84
commit 198e74cd88
2 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ export const PasswordContainer = ({
colorSchema="primary"
variant="outline_bg"
size="sm"
onClick={() => window.open("/share-secret", "_blank")}
onClick={() => window.open("/share-secret", "_blank", "noopener")}
rightIcon={<FontAwesomeIcon icon={faArrowRight} className="pl-2" />}
>
Share Your Own Secret

View File

@@ -76,7 +76,7 @@ export const SecretContainer = ({ secret, secretKey: key }: Props) => {
colorSchema="primary"
variant="outline_bg"
size="sm"
onClick={() => window.open("/share-secret", "_blank")}
onClick={() => window.open("/share-secret", "_blank", "noopener")}
rightIcon={<FontAwesomeIcon icon={faArrowRight} className="pl-2" />}
>
Share Your Own Secret