add filters update event

This commit is contained in:
buzz-lightsnack-2007 2024-03-28 11:16:50 +08:00
parent df855c883c
commit 481ef03576

View file

@ -45,6 +45,13 @@ function arrange() {
*/
function events() {
windowman.events();
document
.querySelector(`[data-action="filters,update"]`)
.addEventListener(`click`, async () => {
let filters = await import(chrome.runtime.getURL(`scripts/filters.js`));
filters.update();
});
}
function main() {