fixes #523 copy & share text

This commit is contained in:
Danny Coates 2017-08-17 09:27:06 -07:00
parent a7aee1450f
commit 254b806fb4
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 7 additions and 0 deletions

View File

@ -118,6 +118,13 @@ async function upload(event) {
link.setAttribute('value', `${info.url}#${info.secretKey}`); 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({ metrics.completedUpload({
size: file.size, size: file.size,
time, time,