add settings page link and regeneration prompt to the side panel

This commit is contained in:
buzz-lightsnack-2007 2024-04-22 23:53:45 +08:00
parent a42daaff61
commit de633e67fb
2 changed files with 4 additions and 2 deletions

View file

@ -78,7 +78,7 @@
<footer class="fixed-action-btn">
<button class="btn-floating btn-large" data-icon="plus" accesskey="+" data-action="filters,add,one"></button>
<ul>
<li><button data-action="filters,update" class="btn-floating waves-effect"
<li><button data-action="filters,update" class="btn-floating"
title-for="settings_filters_update" data-icon="refresh" accesskey="r"></button></li>
</ul>
</footer>

View file

@ -14,7 +14,9 @@ class Page_Popup extends Page {
}
events() {
(document.querySelector(`[data-action="open,settings"]`)) ? document.querySelector(`[data-action="open,settings"]`).addEventListener("click", () => {
chrome.runtime.openOptionsPage();
}) : false;
}
}