Skip to content

Commit

Permalink
fix: previous document is not gone
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Dec 31, 2024
1 parent 8716f2a commit 7ebf083
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions sources/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ Win.Proxy = new Proxy(Win.Proxy, {
let ArgsObj = Args[0]

let IsPowerLinkVariant4th = false
const PowerLinkVariant4th = [2, 2]
let PowerLinkVariant4thIndex = [0, 0]
const PowerLinkVariant4th = [2]
let PowerLinkVariant4thIndex = [0]
for (let [Key, Value] of Object.entries(Args[0])) {
switch (typeof Value) {
case 'number':
PowerLinkVariant4thIndex[0]++
case 'boolean':
PowerLinkVariant4thIndex[1]++
}
}
if (PowerLinkVariant4thIndex[0] >= PowerLinkVariant4th[0] && PowerLinkVariant4thIndex[1] >= PowerLinkVariant4th[1]) {
Expand All @@ -36,7 +34,7 @@ Win.Proxy = new Proxy(Win.Proxy, {
}
} catch {}
let PowerLinkDataIndexKey = [0, 0, 0, 0]
const PowerLinkDataIndexConst = [3, 2, 2, 1]
const PowerLinkDataIndexConst = [3, 0, 1, 1]
for (let [IKey, IValue] of Object.entries(PLData)) {
switch (typeof IValue) {
case 'string':
Expand All @@ -61,11 +59,12 @@ Win.Proxy = new Proxy(Win.Proxy, {
}
}
if (IsPowerLinkVariant4th) {
for (let [Key, Value] of Object.entries(Args[0])) {
if (typeof Value === 'object' && Value !== null && Array.isArray(Value)) {
ArgsObj[Key] = []
}
}
console.debug(Args[0])
// for (let [Key, Value] of Object.entries(Args[0])) {
// if (typeof Value === 'object' && Value !== null && Array.isArray(Value)) {
// ArgsObj[Key] = []
// }
// }
return Reflect.construct(Target, [ArgsObj, Args[1]], NewTarget)
}

Expand Down

0 comments on commit 7ebf083

Please sign in to comment.