Index: stats.js |
diff --git a/stats.js b/stats.js |
index 67be84c595cf739f699b705cd912b07a5b25d6be..1c5845df4b90f3b88ee05f3f867c74cbedffcf0e 100644 |
--- a/stats.js |
+++ b/stats.js |
@@ -21,10 +21,6 @@ |
(function() |
{ |
- const {require} = ext.backgroundPage.getWindow(); |
- |
- const {FilterNotifier} = require("filterNotifier"); |
- |
let currentTab; |
const shareURL = "https://adblockplus.org/"; |
@@ -91,17 +87,10 @@ |
currentTab = tabs[0]; |
updateStats(); |
- FilterNotifier.on("filter.hitCount", updateStats); |
- |
document.getElementById("stats-container").removeAttribute("hidden"); |
}); |
} |
- function onUnload() |
- { |
- FilterNotifier.off("filter.hitCount", updateStats); |
- } |
- |
function updateStats() |
{ |
let statsPage = document.getElementById("stats-page"); |
@@ -148,5 +137,4 @@ |
} |
document.addEventListener("DOMContentLoaded", onLoad, false); |
- window.addEventListener("unload", onUnload, false); |
}()); |