From 4b2d721661d48ff47719db2e1c6de430ae1c1ff6 Mon Sep 17 00:00:00 2001 From: Xmader Date: Sun, 8 Nov 2020 15:48:54 -0500 Subject: [PATCH] fix: anti-detection --- src/anti-detection.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/anti-detection.ts b/src/anti-detection.ts index 8d916de..cc09d9e 100644 --- a/src/anti-detection.ts +++ b/src/anti-detection.ts @@ -11,7 +11,11 @@ export const makeNative = (() => { return function () { if (l.has(this)) { const _fn = l.get(this) || parseInt // "function () {\n [native code]\n}" - return _toString.call(_fn) as string + if (l.has(_fn)) { // nested + return _fn.toString() + } else { + return _toString.call(_fn) as string + } } return _toString.call(this) as string }