mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Refactor: rework tracer
This commit is contained in:
@@ -22,7 +22,7 @@ import { sort } from './lib/timsort';
|
||||
|
||||
const getRejectSukkaConfPromise = readFileIntoProcessedArray(path.resolve(import.meta.dir, '../Source/domainset/reject_sukka.conf'));
|
||||
|
||||
export const buildRejectDomainSet = task(import.meta.path, async (span) => {
|
||||
export const buildRejectDomainSet = task(import.meta.main, import.meta.path)(async (span) => {
|
||||
/** Whitelists */
|
||||
const filterRuleWhitelistDomainSets = new Set(PREDEFINED_WHITELIST);
|
||||
|
||||
@@ -167,7 +167,3 @@ export const buildRejectDomainSet = task(import.meta.path, async (span) => {
|
||||
)
|
||||
]);
|
||||
});
|
||||
|
||||
if (import.meta.main) {
|
||||
buildRejectDomainSet();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user