Skip to content

Commit 68f80b6

Browse files
committed
chore: add target keyword
1 parent 9cd933c commit 68f80b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sources/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Win.Function.prototype.toString = new Proxy(Win.Function.prototype.toString, {
2323
Win.Map.prototype.get = new Proxy(Win.Map.prototype.get, {
2424
apply(Target: (key: unknown) => unknown, ThisArg: Map<unknown, unknown>, Args: [unknown]) {
2525
let ArgText = OriginalArrayToString.call(Args) as string
26-
for (const Item of ['{"inventoryId":']) {
26+
console.debug(ThisArg, Args)
27+
for (const Item of ['{"inventoryId":', '({inventoryId:this']) {
2728
if (OriginalStringIncludes.call(ArgText, Item)) {
2829
console.debug('[tinyShield]:', ThisArg, Args)
2930
throw new Error()

0 commit comments

Comments
 (0)