itaditya / trick-or-treat-game

Play it for free here
https://trick-or-treat.netlify.com/
16 stars 17 forks source link

Added service worker support #31

Closed RuthwikHM closed 4 years ago

RuthwikHM commented 4 years ago

Converted the React App into a basic PWA by adding necessary code for Service Workers.Changes have also been made to the app name.

RuthwikHM commented 4 years ago

Also caching only works if one plays the game once atleast while online. That is how service workers are made.

RuthwikHM commented 4 years ago

If not I suggest you put in an html page to notify the user that he is offline and the game cannot be accessed without having played it once whilst online.