mirror of
https://github.com/pompurin404/mihomo-party.git
synced 2024-11-16 11:42:19 +08:00
fix override exec duplicate
This commit is contained in:
parent
f1ca8a5b7a
commit
9f5a39f652
|
@ -36,7 +36,7 @@ async function overrideProfile(
|
|||
const { items = [] } = (await getOverrideConfig()) || {}
|
||||
const globalOverride = items.filter((item) => item.global).map((item) => item.id)
|
||||
const { override = [] } = (await getProfileItem(current)) || {}
|
||||
for (const ov of globalOverride.concat(override)) {
|
||||
for (const ov of new Set(globalOverride.concat(override))) {
|
||||
const item = await getOverrideItem(ov)
|
||||
const content = await getOverride(ov, item?.ext || 'js')
|
||||
switch (item?.ext) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user