fix: fix plugins cannot load config

This commit is contained in:
Su-Yong
2023-09-04 03:04:44 +09:00
parent 5069913c56
commit b5472c11df
8 changed files with 9 additions and 11 deletions

View File

@ -12,9 +12,7 @@ export const blockers = {
export const shouldUseBlocklists = async () => await config.get('blocker') !== blockers.InPlayer;
export default {
export default Object.assign(config, {
shouldUseBlocklists,
blockers,
get: config.get.bind(this),
set: config.set.bind(this),
};
});