From 72498563b506dc72328c8b5cd4b4dd1d4012d4f6 Mon Sep 17 00:00:00 2001 From: buzzcode2007 <73412182+buzz_lightsnack_2007@users.noreply.github.com> Date: Tue, 2 Apr 2024 15:01:02 +0800 Subject: [PATCH] follows up 917266d --- scripts/filters.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/filters.js b/scripts/filters.js index afd376b..c550b80 100644 --- a/scripts/filters.js +++ b/scripts/filters.js @@ -4,7 +4,14 @@ Manage filters. export default class filters { 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.