Greenheart / pagecrypt

Password Protected Single Page Applications and HTML files
GNU Affero General Public License v3.0
233 stars 25 forks source link

Improve error message in decrypt template when crypto.subtle is missing #51

Open Greenheart opened 3 months ago

Greenheart commented 3 months ago

The current message only refers to using a "modern browser". https://github.com/Greenheart/pagecrypt/blob/38b21afa1fd2859deac414aca1cc01a0b0e34143/web/decrypt.ts#L62

However, since this error also appears in insecure browser contexts (http, file), it would be more useful to have an error message stating that the crypto is unavailable.