vmsg
vmsg copied to clipboard
Failed to execute close on AudioContext
after updating google chrome to v90
I also suffer the same issue. However, using vmsg v0.3.6 instead of v0.4.0, solves the issue.
I have related issue "Uncaught (in promise) DOMException: Can't close an AudioContext twice" for V0.4.0 This is the line: https://github.com/Kagami/vmsg/blob/623b2940a37f5a309cd4d13411a0894664131079/vmsg.js#L172
NOTE: locally this was fixed by this:
- if (this.audioCtx) this.audioCtx.close();
+ if (this.audioCtx && this.audioCtx.state != 'closed') this.audioCtx.close();
What do you think?