fixed favicons and added service-worker
Signed-off-by: Pascal Syma <pascal@syma.dev>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user