Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: stats.js

Issue 29567782: Issue 5593 - Stop updating the stats in the popup in real-time (Closed)
Patch Set: Created Oct. 6, 2017, 1:51 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld