formatted code and deleted extra code from download.js

This commit is contained in:
Abhinav Adduri 2017-06-02 12:49:56 -07:00
parent a45d3dca73
commit 028b6400cb
5 changed files with 41 additions and 182 deletions

View file

@ -21,7 +21,8 @@ let onChange = event => {
progress.innerText = `Progress: ${percentComplete}%`;
});
fileSender.upload().then(info => {
const url = `${window.location.origin}/download/${info.fileId}/#${info.secretKey}`;
const url = `${window.location
.origin}/download/${info.fileId}/#${info.secretKey}`;
localStorage.setItem(info.fileId, info.deleteToken);
link.innerText = url;
link.setAttribute('href', url);