From 26ae64b7238a4455834ed9fd8bbc905216c34575 Mon Sep 17 00:00:00 2001 From: SArpnt Date: Sun, 4 Aug 2024 19:13:00 -0400 Subject: [PATCH] fix proxy detection bug in audioworklet was a minor typo, not sure why typescript didn't catch it --- src/audio-worklet/audio-worklet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio-worklet/audio-worklet.ts b/src/audio-worklet/audio-worklet.ts index aed13bf..eb16bb4 100644 --- a/src/audio-worklet/audio-worklet.ts +++ b/src/audio-worklet/audio-worklet.ts @@ -55,7 +55,7 @@ function getErrorMessage(err: any, time: number) { // replace Proxy so that they can be detected from the bytebeat code // this is completely undetectable by the bytebeat code const proxies = new WeakSet(); -Proxy = Object.getPrototypeOf(Proxy).contructor = new Proxy(Proxy, { +Proxy = Object.getPrototypeOf(Proxy).constructor = new Proxy(Proxy, { construct(target, args) { // @ts-expect-error const newProxy = new target(...args);