forro

Forro is a end-to-end encrypted contract form based on PGP.
git clone git://git.defalsify.org/forro.git
Log | Files | Refs | LICENSE

commit f6ba4f87e3e45488c1c0e17d4c730b04ba8c32f4
parent 27e4c4b53ec65a37e4c3bfb8ee517f2e618f68c5
Author: lash <dev@holbrook.no>
Date:   Wed, 12 Oct 2022 15:21:37 +0000

Replace btoa with base64.js from mime-js

Diffstat:
Mindex.html | 25+------------------------
1 file changed, 1 insertion(+), 24 deletions(-)

diff --git a/index.html b/index.html @@ -1,33 +1,10 @@ <html> <head> <title>Forro contact form</title> - <script> -// drop-in replacement for the Base64 object used by the mime-js repo. -var Base64 = { - encode: (v, n) => { - console.debug("encode", v, n); - if (!v) - return ""; - if (n) - v = new TextEncoder().encode(v); - r = new TextDecoder().decode(v); - return btoa(r); - }, - decode: (v, n) => { - console.debug("decode", v, n); - if (!v) - return ""; - r = atob(v); - if (n) - r = new TextDecoder().decode(r); - return r; - }, -} - </script> - <script defer src="node_modules/alpinejs/dist/cdn.min.js"></script> <script src="node_modules/openpgp/dist/openpgp.min.js"></script> <script src="node_modules/jssha/dist/sha256.js"></script> + <script src="node_modules/MimeJS/src/base64.js"></script> <script src="node_modules/MimeJS/dist/mime-js.min.js"></script> <script src="top.js"></script> <script src="key.js"></script>