We should add a proper event listener you could subscribe on Sup.Input.on(...).
For now, you can work around like this:
declare let document; function handleVisibilityChange() { if (document.hidden) music.pause(); else music.play(); } document.addEventListener("webkitvisibilitychange", handleVisibilityChange, false);