Skip to content

Commit 7620e97

Browse files
committed
chore: change to detect Ad-Shield keyword with Function.prototype.apply
1 parent 995413f commit 7620e97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Win.Function.prototype.toString = new Proxy(Win.Function.prototype.toString, {
2020
Win.Function.prototype.apply = new Proxy(Win.Function.prototype.apply, {
2121
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
2222
apply(Target: typeof Function.prototype.apply, ThisArg: Function, Args: unknown[]) {
23-
if (Args.toString().includes('debug,')) {
23+
if (ThisArg.toString().includes(',inventoryId:')) {
2424
throw new Error()
2525
}
2626

0 commit comments

Comments
 (0)