Move clear/drawAttention logging up a level to reduce verbosity

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-08-28 12:59:08 -07:00
parent f26b9f359c
commit 76a69f7511
No known key found for this signature in database
GPG key ID: A4931C09644C654B
2 changed files with 2 additions and 2 deletions

View file

@ -119,7 +119,6 @@
}, },
drawAttention: function(window_id) { drawAttention: function(window_id) {
console.log('draw attention');
if (chrome.app.window) { if (chrome.app.window) {
var w = chrome.app.window.get(window_id); var w = chrome.app.window.get(window_id);
if (w) { if (w) {
@ -130,7 +129,6 @@
}, },
clearAttention: function(window_id) { clearAttention: function(window_id) {
console.log('clear attention');
if (chrome.app.window) { if (chrome.app.window) {
var w = chrome.app.window.get(window_id); var w = chrome.app.window.get(window_id);
if (w) { if (w) {

View file

@ -23,10 +23,12 @@
clearInterval(window.keepClear); clearInterval(window.keepClear);
delete window.keepClear; delete window.keepClear;
} }
console.log('draw attention');
extension.windows.drawAttention(inboxWindowId); extension.windows.drawAttention(inboxWindowId);
} }
}; };
window.clearAttention = function() { window.clearAttention = function() {
console.log('clear attention');
if (window.keepClear) { if (window.keepClear) {
clearInterval(window.keepClear); clearInterval(window.keepClear);
delete window.keepClear; delete window.keepClear;