Merge branch 'master' of github.com:mozilla/send into localization
This commit is contained in:
commit
902010704a
33 changed files with 246 additions and 869 deletions
|
@ -6,9 +6,9 @@ require('jquery-circle-progress');
|
|||
const Raven = window.Raven;
|
||||
$(document).ready(function() {
|
||||
$('#download-progress').hide();
|
||||
$('.send-new').click(() => {
|
||||
window.location.replace(`${window.location.origin}`);
|
||||
});
|
||||
//link back to homepage
|
||||
$('.send-new').attr('href', window.location.origin);
|
||||
|
||||
const filename = $('#dl-filename').html();
|
||||
|
||||
//initiate progress bar
|
||||
|
@ -21,7 +21,6 @@ $(document).ready(function() {
|
|||
$('#download-btn').click(download);
|
||||
function download() {
|
||||
const fileReceiver = new FileReceiver();
|
||||
const name = document.createElement('p');
|
||||
|
||||
fileReceiver.on('progress', progress => {
|
||||
$('#download-page-one').hide();
|
||||
|
@ -86,7 +85,6 @@ $(document).ready(function() {
|
|||
return;
|
||||
})
|
||||
.then(([decrypted, fname]) => {
|
||||
name.innerText = fname;
|
||||
const dataView = new DataView(decrypted);
|
||||
const blob = new Blob([dataView]);
|
||||
const downloadUrl = URL.createObjectURL(blob);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue