| Index: lib/icon.js |
| =================================================================== |
| --- a/lib/icon.js |
| +++ b/lib/icon.js |
| @@ -139,18 +139,20 @@ |
| } |
| return frames; |
| }); |
| } |
| function animateIcon(notificationType, frames) |
| { |
| - ext.pages.query({active: true}, pages => |
| + chrome.tabs.query({active: true}, tabs => |
| { |
| + let pages = tabs.map(tab => new ext.Page(tab)); |
| + |
| let animationStep = 0; |
| let opacity = 0; |
| let onActivated = page => |
| { |
| pages.push(page); |
| setIcon(page, notificationType, opacity, frames); |
| }; |