| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * This file is part of Adblock Plus <https://adblockplus.org/>, | 2  * This file is part of Adblock Plus <https://adblockplus.org/>, | 
| 3  * Copyright (C) 2006-2016 Eyeo GmbH | 3  * Copyright (C) 2006-2016 Eyeo GmbH | 
| 4  * | 4  * | 
| 5  * Adblock Plus is free software: you can redistribute it and/or modify | 5  * Adblock Plus is free software: you can redistribute it and/or modify | 
| 6  * it under the terms of the GNU General Public License version 3 as | 6  * it under the terms of the GNU General Public License version 3 as | 
| 7  * published by the Free Software Foundation. | 7  * published by the Free Software Foundation. | 
| 8  * | 8  * | 
| 9  * Adblock Plus is distributed in the hope that it will be useful, | 9  * Adblock Plus is distributed in the hope that it will be useful, | 
| 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 57     if (opacity > 0.5) | 57     if (opacity > 0.5) | 
| 58       page.browserAction.setIcon("icons/abp-$size-notification-" | 58       page.browserAction.setIcon("icons/abp-$size-notification-" | 
| 59                                  + notificationType + ".png"); | 59                                  + notificationType + ".png"); | 
| 60     else | 60     else | 
| 61       page.browserAction.setIcon("icons/abp-$size" + | 61       page.browserAction.setIcon("icons/abp-$size" + | 
| 62                                  (whitelisted ? "-whitelisted" : "") + ".png"); | 62                                  (whitelisted ? "-whitelisted" : "") + ".png"); | 
| 63   } | 63   } | 
| 64   else | 64   else | 
| 65   { | 65   { | 
| 66     chrome.browserAction.setIcon({ | 66     chrome.browserAction.setIcon({ | 
| 67       tabId: page._id, | 67       tabId: page.id, | 
| 68       imageData: frames["" + opacity + whitelisted] | 68       imageData: frames["" + opacity + whitelisted] | 
| 69     }); | 69     }); | 
| 70   } | 70   } | 
| 71 } | 71 } | 
| 72 | 72 | 
| 73 function renderFrames(notificationType) | 73 function renderFrames(notificationType) | 
| 74 { | 74 { | 
| 75   if (safariPlatform) | 75   if (safariPlatform) | 
| 76     return Promise.resolve(null); | 76     return Promise.resolve(null); | 
| 77 | 77 | 
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 215           clearInterval(interval); | 215           clearInterval(interval); | 
| 216           resolve(); | 216           resolve(); | 
| 217           return; | 217           return; | 
| 218         } | 218         } | 
| 219 | 219 | 
| 220         animateIcon(type, frames); | 220         animateIcon(type, frames); | 
| 221       }, 10000); | 221       }, 10000); | 
| 222     }); | 222     }); | 
| 223   }); | 223   }); | 
| 224 }; | 224 }; | 
| OLD | NEW | 
|---|