| Index: lib/icon.js |
| =================================================================== |
| --- a/lib/icon.js |
| +++ b/lib/icon.js |
| @@ -14,17 +14,17 @@ |
| * You should have received a copy of the GNU General Public License |
| * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| */ |
| /** @module icon */ |
| "use strict"; |
| -const {FilterNotifier} = require("../adblockpluscore/lib/filterNotifier"); |
| +const {filterNotifier} = require("../adblockpluscore/lib/filterNotifier"); |
| const frameOpacities = [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, |
| 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, |
| 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1, 0.0]; |
| const numberOfFrames = frameOpacities.length; |
| let stopRequested = false; |
| let canUpdateIcon = true; |
| @@ -70,17 +70,17 @@ |
| { |
| browser.browserAction.setIcon({ |
| tabId: page.id, |
| imageData: frames["" + opacity + whitelisted] |
| }); |
| } |
| } |
| -FilterNotifier.on("page.WhitelistingStateRevalidate", (page, filter) => |
| +filterNotifier.on("page.WhitelistingStateRevalidate", (page, filter) => |
| { |
| whitelistedState.set(page, !!filter); |
| if (canUpdateIcon) |
| setIcon(page); |
| }); |
| function renderFrames(notificationType) |
| { |