summaryrefslogtreecommitdiff
path: root/popup/popup.js
diff options
context:
space:
mode:
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();