|
|
@ -135,18 +135,22 @@
|
|
|
|
console.log('draw attention');
|
|
|
|
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) {
|
|
|
|
w.clearAttention();
|
|
|
|
w.clearAttention();
|
|
|
|
w.drawAttention();
|
|
|
|
w.drawAttention();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
clearAttention: function(window_id) {
|
|
|
|
clearAttention: function(window_id) {
|
|
|
|
console.log('clear attention');
|
|
|
|
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) {
|
|
|
|
w.clearAttention();
|
|
|
|
w.clearAttention();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|