diff options
Diffstat (limited to 'popup')
| -rw-r--r-- | popup/popup.html | 6 | ||||
| -rw-r--r-- | popup/popup.js | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/popup/popup.html b/popup/popup.html index 8ffa03d..1c5c84c 100644 --- a/popup/popup.html +++ b/popup/popup.html @@ -87,6 +87,12 @@ </div> </div> + <div class="actions"> + <button id="view-data" class="action-button secondary"> + <i class="fas fa-database"></i> View All Stored Data + </button> + </div> + </main> 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(); |
