fixed favicons and added service-worker

Signed-off-by: Pascal Syma <pascal@syma.dev>
This commit is contained in:
2020-07-11 16:23:53 +02:00
parent 07e08ba4f6
commit 600575655d
5 changed files with 2082 additions and 6 deletions
+6
View File
@@ -37,4 +37,10 @@ const config = {
}
};
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('./service-worker.js').then();
});
}
const game = new Phaser.Game(config);