2024-04-18 21:46:59 +02:00
|
|
|
const statki = "statki-by-maciejka-0.7.6";
|
2024-04-12 22:04:11 +02:00
|
|
|
const assets = [
|
|
|
|
"/favicon.ico",
|
|
|
|
"/assets/css/landing.css",
|
|
|
|
"/assets/css/main.css",
|
|
|
|
"/assets/css/responsive.css",
|
|
|
|
"/assets/css/board.css",
|
|
|
|
"/assets/css/board-responsive.css",
|
|
|
|
"/assets/js/battleships-lib.js",
|
|
|
|
"/assets/js/key-handling.js",
|
|
|
|
"/assets/js/landing.js",
|
|
|
|
"/assets/js/main.js",
|
|
|
|
"/assets/js/socket-err-handler.js",
|
|
|
|
"/assets/js/socket-game.js",
|
|
|
|
"/assets/js/socket.js",
|
|
|
|
"/assets/js/spa_lib.js"
|
|
|
|
];
|
|
|
|
|
|
|
|
self.addEventListener("install", installEvent => {
|
|
|
|
installEvent.waitUntil(
|
|
|
|
caches.open(statki).then(cache => {
|
|
|
|
cache.addAll(assets);
|
|
|
|
})
|
|
|
|
);
|
2024-04-14 19:17:20 +02:00
|
|
|
});
|
|
|
|
|