fix proxy detection bug in audioworklet

was a minor typo, not sure why typescript didn't catch it
This commit is contained in:
SArpnt 2024-08-04 19:13:00 -04:00
parent f35f6cf769
commit 26ae64b723
Signed by: SArpnt
SSH key fingerprint: SHA256:iDMeic8KkqqEsN4wODlgsk1d/oW1ojZ/cu/MEWyfLBw

View file

@ -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);