summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah Lee <micah@micahflee.com>2019-02-17 21:19:01 -0800
committerMicah Lee <micah@micahflee.com>2019-02-17 21:19:01 -0800
commit57522c58b67b29854ad563c1cf54666966c39998 (patch)
treeb95eae1f685797270216a307513872b4f9855a91
parentaaa4e239de906c6412d83b1d5ffa7d0ed0c16417 (diff)
downloadonionshare-57522c58b67b29854ad563c1cf54666966c39998.tar.gz
onionshare-57522c58b67b29854ad563c1cf54666966c39998.zip
Remove console.log() debug statements
-rw-r--r--share/static/js/receive.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/share/static/js/receive.js b/share/static/js/receive.js
index 36bca07c..02c37b3f 100644
--- a/share/static/js/receive.js
+++ b/share/static/js/receive.js
@@ -28,7 +28,6 @@ $(function(){
ajax.upload.addEventListener('progress', function(event){
// Update progress bar for this specific upload
if(event.lengthComputable) {
- console.log('upload progress', ''+event.loaded+' bytes / '+event.total+' bytes');
$('progress', ajax.$upload_div).attr({
value: event.loaded,
max: event.total,
@@ -38,15 +37,12 @@ $(function(){
// If it's finished sending all data to the first Tor node, remove cancel button
// and update the status
if(event.loaded == event.total) {
- console.log('upload progress', 'complete');
$('.cancel', ajax.$upload_div).remove();
$('.upload-status', ajax.$upload_div).html('<img src="/static/img/ajax.gif" alt="" /> Waiting for data to finish traversing Tor network ...');
}
}, false);
ajax.addEventListener('load', function(event){
- console.log('upload finished', ajax.response);
-
// Remove the upload div
ajax.$upload_div.remove();
@@ -74,13 +70,11 @@ $(function(){
}
}
} catch(e) {
- console.log('invalid response');
flash('error', 'Invalid response from server: '+data);
}
}, false);
ajax.addEventListener('error', function(event){
- console.log('error', event);
flash('error', 'Error uploading: '+filenames.join(', '));
// Remove the upload div
@@ -88,7 +82,6 @@ $(function(){
}, false);
ajax.addEventListener('abort', function(event){
- console.log('abort', event);
flash('error', 'Upload aborted: '+filenames.join(', '));
}, false);
@@ -130,6 +123,5 @@ $(function(){
// Send the request
ajax.open('POST', window.location.pathname + '/upload-ajax', true);
ajax.send(formData);
- console.log('upload started');
});
});