Get rid of console.log statements
This commit is contained in:
parent
1bf8dd93fd
commit
42ef0facc9
|
@ -90,7 +90,6 @@ $(document).ready(function() {
|
||||||
$('.progress-text').text(decryptingFile);
|
$('.progress-text').text(decryptingFile);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
console.log('Done decrypting');
|
|
||||||
downloadEnd = Date.now();
|
downloadEnd = Date.now();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -24,12 +24,6 @@ class FileSender extends EventEmitter {
|
||||||
if (xhr.readyState === XMLHttpRequest.DONE) {
|
if (xhr.readyState === XMLHttpRequest.DONE) {
|
||||||
resolve();
|
resolve();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xhr.status === 200) {
|
|
||||||
console.log('The file was successfully deleted.');
|
|
||||||
} else {
|
|
||||||
console.log('The file has expired, or has already been deleted.');
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
xhr.send(JSON.stringify({ delete_token: token }));
|
xhr.send(JSON.stringify({ delete_token: token }));
|
||||||
|
@ -54,7 +48,8 @@ class FileSender extends EventEmitter {
|
||||||
['encrypt', 'decrypt']
|
['encrypt', 'decrypt']
|
||||||
)
|
)
|
||||||
.catch(err =>
|
.catch(err =>
|
||||||
console.log('There was an error generating a crypto key')
|
// eslint-disable-next-line no-console
|
||||||
|
console.error('There was an error generating a crypto key')
|
||||||
),
|
),
|
||||||
new Promise((resolve, reject) => {
|
new Promise((resolve, reject) => {
|
||||||
const reader = new FileReader();
|
const reader = new FileReader();
|
||||||
|
|
|
@ -206,8 +206,6 @@ $(document).ready(function() {
|
||||||
document.l10n.formatValue('verifyingFile').then(verifyingFile => {
|
document.l10n.formatValue('verifyingFile').then(verifyingFile => {
|
||||||
$('.progress-text').text(verifyingFile);
|
$('.progress-text').text(verifyingFile);
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
console.log('Finished hashing');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -219,7 +217,6 @@ $(document).ready(function() {
|
||||||
$('.progress-text').text(encryptingFile);
|
$('.progress-text').text(encryptingFile);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
console.log('Finished encrypting');
|
|
||||||
uploadStart = Date.now();
|
uploadStart = Date.now();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -33,6 +33,7 @@ function allLangs() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function prodLangs() {
|
function prodLangs() {
|
||||||
|
// eslint-disable-next-line security/detect-non-literal-require
|
||||||
return require(path.join(
|
return require(path.join(
|
||||||
__dirname,
|
__dirname,
|
||||||
'..',
|
'..',
|
||||||
|
|
Loading…
Reference in New Issue