fixes #523 copy & share text
This commit is contained in:
parent
a7aee1450f
commit
254b806fb4
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue