Skip to content

Commit

Permalink
style: rename from This to ThisArg
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Dec 31, 2024
1 parent 8789884 commit 6ceb433
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sources/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ declare const unsafeWindow: unsafeWindow
const Win = typeof unsafeWindow !== 'undefined' ? unsafeWindow : window

Win.Object.defineProperty = new Proxy(Win.Object.defineProperty, {
apply(Target: typeof Object.defineProperty, This: null, Args: Parameters<typeof Object.defineProperty>) {
apply(Target: typeof Object.defineProperty, ThisArg: null, Args: Parameters<typeof Object.defineProperty>) {
if (Args[0] && typeof (Args[0] as TPowerLink).unitPath === 'string'
&& /^\/[0-9]+\/namuwiki\/(?!sidebar-box)/.test((Args[0] as TPowerLink).unitPath)) {
return
}
return Reflect.apply(Target, This, Args)
return Reflect.apply(Target, ThisArg, Args)
}
})

Expand Down

0 comments on commit 6ceb433

Please sign in to comment.