| Index: stats.js |
| =================================================================== |
| --- a/stats.js |
| +++ b/stats.js |
| @@ -16,18 +16,16 @@ |
| */ |
| /* global i18n, getPref, togglePref */ |
| "use strict"; |
| (function() |
| { |
| - const {require} = ext.backgroundPage.getWindow(); |
| - |
| const {FilterNotifier} = require("filterNotifier"); |
| let currentTab; |
| const shareURL = "https://adblockplus.org/"; |
| let messageMark = {}; |
| let shareLinks = { |
| facebook: ["https://www.facebook.com/dialog/feed", { |
| @@ -128,17 +126,19 @@ |
| getPref("blocked_total", blockedTotal => |
| { |
| // Easter Egg |
| if (blockedTotal <= 9000 || blockedTotal >= 10000) |
| blockedTotal = blockedTotal.toLocaleString(); |
| else |
| blockedTotal = i18n.getMessage("stats_over", (9000).toLocaleString()); |
| - ext.pages.open(createShareLink(ev.target.dataset.social, blockedTotal)); |
| + chrome.tabs.create({ |
| + url: createShareLink(ev.target.dataset.social, blockedTotal) |
| + }); |
| }); |
| } |
| function toggleIconNumber() |
| { |
| togglePref("show_statsinicon", showStatsInIcon => |
| { |
| document.getElementById("show-iconnumber").setAttribute( |