Phaser 3, pause on minimize

I am creating an animation with phaser which contains a timer.

The issue occurs when I Alt-Tab or minimize the page as the timer keeps on running but the animation stops, so the GameObjects are not in sync with the timers.

I’ve looked through the config class of the phaser object and couldn’t find any parameter related to this.

I also tried using this.game.loop.wake() when changing visibility but it doesn’t seem to be working also (it still stops the animation while I’m not on the page)

create()
{
   //[...]
   this.setupVisibilityChangeListener();
}

setupVisibilityChangeListener() {

  document.addEventListener('visibilitychange', () => {
    this.game.loop.wake();
  });
}