removed console logs

This commit is contained in:
bill bittner 2017-06-27 21:39:33 -07:00
parent 7efce7739b
commit 86f8d83c05
5 changed files with 0 additions and 13 deletions

View file

@ -107,7 +107,6 @@ module.exports = {
// 1. get the top free, public claims // 1. get the top free, public claims
getAllFreePublicClaims(claimName) getAllFreePublicClaims(claimName)
.then(freePublicClaimList => { .then(freePublicClaimList => {
console.log('I got here!');
const name = freePublicClaimList[0].name; const name = freePublicClaimList[0].name;
const claimId = freePublicClaimList[0].claim_id; const claimId = freePublicClaimList[0].claim_id;
const uri = `${name}#${claimId}`; const uri = `${name}#${claimId}`;
@ -134,7 +133,6 @@ module.exports = {
}); });
}) })
.catch(error => { .catch(error => {
console.log('I got here too!');
reject(error); reject(error);
}); });
}); });

View file

@ -52,7 +52,6 @@ function updatePublishStatus(msg){
} }
// process the drop-zone drop // process the drop-zone drop
function drop_handler(ev) { function drop_handler(ev) {
console.log("drop");
ev.preventDefault(); ev.preventDefault();
// if dropped items aren't files, reject them // if dropped items aren't files, reject them
var dt = ev.dataTransfer; var dt = ev.dataTransfer;
@ -60,11 +59,7 @@ function drop_handler(ev) {
if (dt.items[0].kind == 'file') { if (dt.items[0].kind == 'file') {
var droppedFile = dt.items[0].getAsFile(); var droppedFile = dt.items[0].getAsFile();
previewAndStageFile(droppedFile); previewAndStageFile(droppedFile);
} else {
console.log("no files were found")
} }
} else {
console.log("no items were found")
} }
} }
// prevent the browser's default drag behavior // prevent the browser's default drag behavior
@ -169,7 +164,6 @@ socket.on('publish-complete', function(msg){
try { try {
var successful = document.execCommand('copy'); var successful = document.execCommand('copy');
var msg = successful ? 'successful' : 'unsuccessful'; var msg = successful ? 'successful' : 'unsuccessful';
console.log('Copying text command was ' + msg);
} catch (err) { } catch (err) {
alert('Oops, unable to copy'); alert('Oops, unable to copy');
} }

View file

@ -15,5 +15,4 @@ function toggleSection(event){
masterElement.innerText = "[open]"; masterElement.innerText = "[open]";
masterElement.dataset.open = "false"; masterElement.dataset.open = "false";
} }
console.log(status);
} }

View file

@ -33,7 +33,6 @@ function startPublish() {
var blob = dataURItoBlob(dataUrl) var blob = dataURItoBlob(dataUrl)
var fileName = nameInput.value + ".jpg"; //note: need to dynamically grab type var fileName = nameInput.value + ".jpg"; //note: need to dynamically grab type
var file = new File([blob], fileName, {type: 'image/jpeg', lastModified: Date.now()}); var file = new File([blob], fileName, {type: 'image/jpeg', lastModified: Date.now()});
console.log(file);
stageAndPublish(file); stageAndPublish(file);
}; };
@ -144,7 +143,6 @@ socket.on('publish-complete', function(msg){
try { try {
var successful = document.execCommand('copy'); var successful = document.execCommand('copy');
var msg = successful ? 'successful' : 'unsuccessful'; var msg = successful ? 'successful' : 'unsuccessful';
console.log('Copying text command was ' + msg);
} catch (err) { } catch (err) {
alert('Oops, unable to copy'); alert('Oops, unable to copy');
} }

View file

@ -55,12 +55,10 @@ module.exports = (app) => {
serveController serveController
.getClaimByName(params.name) .getClaimByName(params.name)
.then(fileInfo => { .then(fileInfo => {
console.log('hi there!');
postRequestAnalytics(originalUrl, ip, 'success'); postRequestAnalytics(originalUrl, ip, 'success');
serveFile(fileInfo, res); serveFile(fileInfo, res);
}) })
.catch(error => { .catch(error => {
console.log('hi there too!');
postRequestAnalytics(originalUrl, ip, error); postRequestAnalytics(originalUrl, ip, error);
errorHandlers.handleRequestError(error, res); errorHandlers.handleRequestError(error, res);
}); });