Skip to content

Commit 61c354f

Browse files
committed
fix: typo
1 parent fe15c90 commit 61c354f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ declare const unsafeWindow: unsafeWindow
44

55
const Win = typeof unsafeWindow !== 'undefined' ? unsafeWindow : window
66

7-
const OrignalFunctionToString = Win.Function.prototype.toString
7+
const OriginalFunctionToString = Win.Function.prototype.toString
88

99
const ProtectedFunctionStrings = ['toString', 'apply']
1010

@@ -22,7 +22,7 @@ Win.Function.prototype.toString = new Proxy(Win.Function.prototype.toString, {
2222
Win.Function.prototype.apply = new Proxy(Win.Function.prototype.apply, {
2323
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
2424
apply(Target: typeof Function.prototype.apply, ThisArg: Function, Args: unknown[]) {
25-
let FunctionText = OrignalFunctionToString.call(ThisArg) as string
25+
let FunctionText = OriginalFunctionToString.call(ThisArg) as string
2626
if ([',inventoryId:', ':if("#adshield"===', ':_.ADS_FRAME,', '[new ad(this,'].some(Item => FunctionText.includes(Item))) {
2727
console.debug('[tinyShield]:', FunctionText, Args)
2828
throw new Error()

0 commit comments

Comments
 (0)