fix bug
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
document.addEventListener("visibilitychange", (e) =>{
|
||||
// document.visibilityState will be "visible" or "hidden" (or "prerender) if it's important
|
||||
if (Howler.ctx.state !== "running") { // better to check on !=="running" as you are doing
|
||||
Howler.ctx.resume();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user