fix: handle unavailable browser cryptography

Detect insecure or unsupported browser contexts before account registration and show localized HTTPS guidance instead of leaking a SubtleCrypto runtime error.

Fixes #320
This commit is contained in:
shuaiplus committed 2026-07-23 00:54:52 +08:00
1 parent f761fffd58
commit 82d9f61163
15 files changed
+165 -22

No files matched your search

+1
View File
@@ -511,6 +511,7 @@ const it: Record<string, string> = {
"txt_create_account": "Crea Account",
"txt_registering": "Creazione Account in corso...",
"txt_register_failed": "Registrazione fallita",
"txt_web_crypto_unavailable": "La crittografia sicura del browser non è disponibile. Apri NodeWarden tramite HTTPS in un browser supportato.",
"txt_create_folder": "Crea cartella",
"txt_create_folder_failed": "Impossibile creare la cartella",
"txt_create_item_failed": "Impossibile creare l'elemento",