From 254b806fb4f41a1907fe2e06abe2d1dec56f4f8b Mon Sep 17 00:00:00 2001 From: Danny Coates Date: Thu, 17 Aug 2017 09:27:06 -0700 Subject: [PATCH] fixes #523 copy & share text --- frontend/src/upload.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/upload.js b/frontend/src/upload.js index 2d004f29..7b2ccab0 100644 --- a/frontend/src/upload.js +++ b/frontend/src/upload.js @@ -118,6 +118,13 @@ async function upload(event) { link.setAttribute('value', `${info.url}#${info.secretKey}`); + const copyText = document.getElementById('copy-text'); + copyText.setAttribute( + 'data-l10n-args', + JSON.stringify({ filename: file.name }) + ); + copyText.setAttribute('data-l10n-id', 'copyUrlFormLabelWithName'); + metrics.completedUpload({ size: file.size, time,