I am developing a game and at the first layout I want to check if the there is an internet connection or not, what I did:
at the start of layout --> I checked the browser Is online event ... and else it will be offline.
I used a text object just to test things when the game is online the text will b (online game) if not it would be (offline game).
But when there is NO internet, it still displays (online game).