fixed csrf test and a bug
This commit is contained in:
@@ -27,7 +27,7 @@ const RecoveryCodesDisplay: React.FC<RecoveryCodesDisplayProps> = ({
|
||||
|
||||
const handleDownload = () => {
|
||||
if (
|
||||
!confirm(
|
||||
!window.confirm(
|
||||
"Warning: This will create an unencrypted file on your device. " +
|
||||
"Consider using a password manager instead. Continue?"
|
||||
)
|
||||
@@ -48,7 +48,7 @@ const RecoveryCodesDisplay: React.FC<RecoveryCodesDisplayProps> = ({
|
||||
|
||||
const handlePrint = () => {
|
||||
if (
|
||||
!confirm(
|
||||
!window.confirm(
|
||||
"Warning: Printed documents can be easily compromised. " +
|
||||
"Consider using a password manager instead. Continue?"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user