show share link in uploaded files list

This commit is contained in:
Daniela Arcese 2017-06-05 09:48:57 -04:00
parent a1e2026759
commit 2668f22d8a
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ let onChange = event => {
fileSender.upload().then(info => {
const url = `${window.location
.origin}/download/${info.fileId}/#${info.secretKey}`;
link.innerHTML = url;
localStorage.setItem(info.fileId, info.deleteToken);
var del = document.createElement("td");
var btn = document.createElement("button");