This commit is contained in:
buzzcode2007 2024-04-02 15:01:02 +08:00
parent 353901ce6b
commit 72498563b5

View file

@ -4,7 +4,14 @@ Manage filters.
export default class filters { export default class filters {
constructor() { constructor() {
this.all = {}; this.all = (async() => {
// Import the updater.
const secretariat = await import(
chrome.runtime.getURL("scripts/secretariat.js")
);
return ((await Promise.all([secretariat.read([`filters`], -1)]))[0])
})
} }
/* Select the most appropriate filter based on a URL. /* Select the most appropriate filter based on a URL.