From 8d64ec8153660216916fa35d1ac8e951b81510e9 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sat, 8 Feb 2020 14:53:16 -0800 Subject: [PATCH] Add lock icon (#733) Because it looks more secure ;) --- src/scene/data.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/scene/data.ts b/src/scene/data.ts index add3bd42..a299fc97 100644 --- a/src/scene/data.ts +++ b/src/scene/data.ts @@ -177,10 +177,6 @@ export async function exportToBackend( body: encrypted, }); const json = await response.json(); - // TODO: comment following - // const json = {id: '1234'} - // console.log("new Uint8Array([" + new Uint8Array(encrypted).join(",") + "])"); - if (json.id) { const url = new URL(window.location.href); // We need to store the key (and less importantly the id) as hash instead @@ -188,7 +184,7 @@ export async function exportToBackend( url.hash = `json=${json.id},${exportedKey.k!}`; const urlString = url.toString(); - window.prompt(t("alerts.uploadedSecurly"), urlString); + window.prompt(`🔒${t("alerts.uploadedSecurly")}`, urlString); } else { window.alert(t("alerts.couldNotCreateShareableLink")); }