From 5785dd4e3ef56008cefb358b7478ed082f6e6760 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 22 Nov 2024 22:48:13 -0800 Subject: [PATCH] base64 instead of blob --- static/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index 5701c57..c90d12a 100644 --- a/static/index.html +++ b/static/index.html @@ -233,7 +233,7 @@ URL:mailto:{{.CONTACT_PAGE_EMAIL}} END:VCARD `; document.getElementById('qr').value = qr; - document.getElementById('qr-a').href = URL.createObjectURL(new Blob([qr], { type: 'text/vcard' })); + document.getElementById('qr-a').href = `data:text/vcard;base64,${btoa(qr)}`;