Skip to content

"Sweetalert" pops up whenever the user switches tabs and returns to the game. #40

Description

@Ramzi-Abidi

Describe the bug
the game is reinitialized whenever user switches tabs and returns to the game.

To Reproduce
Steps to reproduce the behavior:

  1. start any game mode
  2. switch to another tab
  3. comeback to the game
  4. swal will be poped up.

Expected behavior
The game should be paused and when user comeback, a text message is displayed on screen "Game is paused, press "p" to resume!".

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions