From 1c28e6075d05e3bb0ca8cd70fdbb52ad7124204b Mon Sep 17 00:00:00 2001 From: Krzysztof Jan Modras Date: Fri, 5 Mar 2021 15:11:06 +0100 Subject: [PATCH] Details stats for the new tab page addon Ghostery Dawn New Tab Page is going to show WTM popup with number of trackers blocked grouped by category. Fortunately commons `insight` module already provide all required information. --- src/background.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/background.js b/src/background.js index 4df14fa92..c18583502 100644 --- a/src/background.js +++ b/src/background.js @@ -1416,6 +1416,12 @@ function initializeEventListeners() { getDataForGhosteryTab(data => sendResponse({ historicalDataAndSettings: data })); return true; } + + if (recognized && request.name === 'getDashboardStats') { + insights.action('getDashboardStats', ...(request.args || [])).then(sendResponse); + return true; + } + return false; }); }