From 0b932ab5d45be2150bff09084aada8b241062005 Mon Sep 17 00:00:00 2001 From: velzie Date: Sun, 14 Jul 2024 15:15:54 -0400 Subject: [PATCH] fix illegal invocation pt 2 --- src/client/window.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/window.ts b/src/client/window.ts index 584db8f..3537f0d 100644 --- a/src/client/window.ts +++ b/src/client/window.ts @@ -1,7 +1,7 @@ import { locationProxy } from "./location"; export const windowProxy = new Proxy(window, { - get(target, prop, reciever) { + get(target, prop) { const propIsString = typeof prop === "string"; if (propIsString && prop === "location") { return locationProxy; @@ -19,7 +19,7 @@ export const windowProxy = new Proxy(window, { }) } - const value = Reflect.get(target, prop, reciever); + const value = Reflect.get(target, prop); if (typeof value === "function") { return value.bind(target);