fix: change filename of secret key download (#610)

This commit is contained in:
Gorjan Petrovski
2021-07-27 14:42:30 +02:00
committed by GitHub
parent 84bb17ba1d
commit eb6d8c9cba

View File

@@ -5,7 +5,7 @@ export function downloadSecretKey(text: string) {
type: 'text/plain;charset=utf-8',
});
link.href = window.URL.createObjectURL(blob);
link.setAttribute('download', 'secret_key.txt');
link.setAttribute('download', 'standardnotes_2fa_key.txt');
document.body.appendChild(link);
link.click();
link.remove();