Skip to content

Commit

Permalink
fix: improve logic of Object inner section analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Dec 27, 2024
1 parent d3a9a45 commit 0533d6f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sources/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Win.Proxy = new Proxy(Win.Proxy, {
Object.keys(Args[0]).forEach((Key: string) => {
switch (typeof Args[0][Key]) {
case 'string':
if (Args[0][Key].length > 10) {
if (Args[0][Key].length > 5) {
TensorResult[0]++
}
break
Expand All @@ -65,12 +65,11 @@ Win.Proxy = new Proxy(Win.Proxy, {
}
})
}
if (TensorResult.every((Result) => Result >= 3)) {
if (TensorResult.every((Result) => Result >= 3) && typeof Args[0]['content'] !== 'object') {
HideLeftover()
return Reflect.construct(Target, [Args[0], ['파워링크']], NewTarget)
}
//

return Reflect.construct(Target, Args, NewTarget)
}
})

0 comments on commit 0533d6f

Please sign in to comment.