Skip to content

Commit 6c618a1

Browse files
committed
remove console log errors
1 parent 535cfc7 commit 6c618a1

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

background.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ $(document).ready(function() {
118118
chrome.tabs.executeScript(tabId, {
119119
file: "js/set_status_icon.js"
120120
}, function() {
121-
console.log("Status set to " + newStatus);
121+
// console.log("Status set to " + newStatus);
122122
});
123123
});
124124
} catch (e) {
125-
console.log("Error Message: " + e);
125+
// console.log("Error Message: " + e);
126126
}
127127
});
128128
});
@@ -252,7 +252,7 @@ $(document).ready(function() {
252252
function send() {
253253
// alert('you said ' + txt);
254254
// setResponse('you said ' + txt);
255-
console.log('user said ' + txt);
255+
// console.log('user said ' + txt);
256256
txt = txt.replace('hey ', '');
257257
// alert(txt);
258258
tasks();
@@ -304,7 +304,7 @@ $(document).ready(function() {
304304
} else if (data.result.metadata.intentName === "calendar") {
305305
//Speech("please tell details about the event");
306306
chrome.identity.getProfileUserInfo(function(userInfo) {
307-
console.log(userInfo.id);
307+
// console.log(userInfo.id);
308308
chrome.tabs.create({
309309
'url': 'https://www.google.com/calendar/render?action=TEMPLATE&text=data.result.parameters.any&dates=data.result.parameters.dateTdata.result.parameters.timeZ&output=xml'
310310
});
@@ -414,7 +414,7 @@ $(document).ready(function() {
414414
/*get cropped image from user*/
415415
function getCroppedImage(image, callbackMethod) {
416416

417-
console.log("cropping image : callbackMethod : " + callbackMethod);
417+
// console.log("cropping image : callbackMethod : " + callbackMethod);
418418
chrome.tabs.query({
419419
active: true,
420420
currentWindow: true
@@ -433,7 +433,7 @@ $(document).ready(function() {
433433
chrome.tabs.executeScript(tabid, {
434434
file: "js/content_script.js"
435435
}, function(response) {
436-
console.log("Indside background script!! id:" + tabid + ", response: " + JSON.stringify(response, null, 4));
436+
// console.log("Indside background script!! id:" + tabid + ", response: " + JSON.stringify(response, null, 4));
437437
});
438438
});
439439
});
@@ -465,10 +465,10 @@ $(document).ready(function() {
465465
chrome.tabs.create({
466466
url: searchURL
467467
}, function(tab) {
468-
console.log("reverse search successful");
468+
// console.log("reverse search successful");
469469
});
470470
} else {
471-
console.log("Sorry, Unable to perform reverse search!");
471+
// console.log("Sorry, Unable to perform reverse search!");
472472
}
473473
};
474474
xhr.send(fd);
@@ -493,10 +493,10 @@ $(document).ready(function() {
493493
chrome.tabs.create({
494494
url: searchURL
495495
}, function(tab) {
496-
console.log("reverse search successful");
496+
// console.log("reverse search successful");
497497
});
498498
} else {
499-
console.log("Sorry, Unable to perform reverse search!");
499+
// console.log("Sorry, Unable to perform reverse search!");
500500
}
501501
};
502502
xhr.send(fd);
@@ -531,7 +531,7 @@ function swapTab() {
531531
getCroppedImage(screenshotUrl, "screenshot");
532532
chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
533533
if (message.callbackMethod === "screenshot") {
534-
console.log("CroppedImage Recieved!!");
534+
// console.log("CroppedImage Recieved!!");
535535

536536
chrome.tabs.onUpdated.addListener(function listener(tabId, changedProps) {
537537
// we are waiting for the tab to be open

js/set_status_icon.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* inactive - Anna is not active currently
1010
*/
1111
function setIcon(status) {
12-
console.log("status : "+status);
12+
// console.log("status : "+status);
1313

1414
var icon = document.querySelector("#anna-status-icon");
1515
var iconURL = "";
@@ -32,7 +32,7 @@ function setIcon(status) {
3232

3333
// modifying icon on page
3434
if(icon === null || icon === undefined){
35-
console.log("Creating a new div element for icon");
35+
// console.log("Creating a new div element for icon");
3636
icon = document.createElement("div");
3737
icon.id="anna-status-icon";
3838
icon.style.position = "fixed";
@@ -56,7 +56,7 @@ function setIcon(status) {
5656
}
5757

5858
icon.querySelector("img").src = iconURL;
59-
console.log("Icon URL changed to: "+iconURL);
59+
// console.log("Icon URL changed to: "+iconURL);
6060
}
6161

6262
setIcon(status);

0 commit comments

Comments
 (0)