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

View file

@ -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,