summaryrefslogtreecommitdiff
path: root/popup/popup.js
diff options
context:
space:
mode:
authorsameerasw <[email protected]>2025-04-10 15:09:26 +0530
committersameerasw <[email protected]>2025-04-10 15:09:26 +0530
commit6e0a2f92e25b927c559a9b532fe1b087df921e74 (patch)
treef6f74e13215b56cb9b116cff819a5d19eb54bba1 /popup/popup.js
parent7f45e1729c777de8f37e2f98bd58957a13d7027b (diff)
New data viewer page and ability to reset forced sites and all data
Diffstat (limited to 'popup/popup.js')
-rw-r--r--popup/popup.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/popup/popup.js b/popup/popup.js
index d81ed7d..82fc942 100644
--- a/popup/popup.js
+++ b/popup/popup.js
@@ -54,6 +54,13 @@ new (class ExtensionPopup {
this.handleWhitelistModeChange.bind(this)
);
+ // Add event listener for the data viewer button
+ document.getElementById("view-data")?.addEventListener("click", () => {
+ browser.tabs.create({
+ url: browser.runtime.getURL("data-viewer/data-viewer.html"),
+ });
+ });
+
// Setup auto-update and display last fetched time
this.setupAutoUpdate();
this.displayLastFetchedTime();