added reward checking

This commit is contained in:
Saw, Hansly Kendrich 2022-09-15 18:16:09 +08:00
parent 71665f6984
commit f03997c4a4
6 changed files with 90 additions and 18 deletions

14
scripts/app.js Normal file
View file

@ -0,0 +1,14 @@
/* app.js
service workers
*/
var app = {
"name": "RollDice",
"description": "Chinese Dice Game",
"authors": ['buzz-lightsnack-2007'],
"sourcecode": "https://gitdab.com/buzz-lightsnack-2007/RollDice"
}
if('serviceWorker' in navigator) {
navigator.serviceWorker.register('scripts/offline.js', { scope: '/' });
}