I am trying to determine the difference between:
a) When a user clicks a link a browser window is opened. User goes back to game and it always restarts the game.
b) User selects another app, my game is in the background. User selects my game (it has not been closed) and is now in focus. The game has not restarted.
Is there a way I can tell if it is focused and when it becomes unfocused?