We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f6a111 commit 4b826e4Copy full SHA for 4b826e4
frontend/src/game/dotnet.ts
@@ -46,13 +46,13 @@ export const bypassDebug = proxyConsole("debug", "var(--fg4)");
46
function hookfmod() {
47
let contexts: AudioContext[] = [];
48
49
- let ctx = AudioContext;
50
- (AudioContext as any) = function () {
51
- let context = new ctx();
52
-
53
- contexts.push(context);
54
- return context;
55
- };
+ (AudioContext as any) = new Proxy(AudioContext, {
+ construct(target, argArray) {
+ let ctx = new target(...argArray);
+ contexts.push(ctx);
+ return ctx;
+ },
+ });
56
57
window.addEventListener("visibilitychange", async () => {
58
if (document.visibilityState === "visible") {
0 commit comments