Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

This is a great extension to speed up load time of HTML5 games, but I wonder if there's a tweak to avoid it crashing on Chrome Incognito mode due to security restrictions? It happens only when the game is embedded (can reproduce it in this example).

(+1)

The easiest would be to wrap the function’s implementation in try-catch - incognito mode can be variously cursed, from localStorage existing but doing nothing (write something, read it back, and get nothing) to exceptions being thrown when trying to access it

Thank you very much!  Sounds good and that's what I'm going to do.