commit 1cee6619632ca6e91ba6f199708fc13f90fad636
parent d45c96feb16bec578dca6a088ff372a5da48a12f
Author: AMIT DUTTA <amitdutta4255@gmail.com>
Date: Tue, 17 Feb 2026 16:25:44 +0530
Add files via upload
Diffstat:
2 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/icon.svg b/icon.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" rx="30" fill="#006C4C"/><path d="M30 35C30 32.2386 32.2386 30 35 30H65C67.7614 30 70 32.2386 70 35V55C70 57.7614 67.7614 60 65 60H45L30 70V35Z" fill="white"/><circle cx="42" cy="45" r="3" fill="#006C4C"/><circle cx="50" cy="45" r="3" fill="#006C4C"/><circle cx="58" cy="45" r="3" fill="#006C4C"/></svg>+
\ No newline at end of file
diff --git a/sw.js b/sw.js
@@ -0,0 +1,18 @@
+const CACHE_NAME = 'walogger-v1';
+const ASSETS = [
+ './',
+ './wpChat.html',
+ './icon.svg',
+ 'https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Google+Sans:wght@400;500;700&display=swap',
+ 'https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0'
+];
+
+self.addEventListener('install', (e) => {
+ e.waitUntil(caches.open(CACHE_NAME).then(cache => cache.addAll(ASSETS)));
+});
+
+self.addEventListener('fetch', (e) => {
+ e.respondWith(
+ caches.match(e.request).then(response => response || fetch(e.request))
+ );
+});+
\ No newline at end of file