Advay-Singh commited on
Commit
35e8c4c
·
verified ·
1 Parent(s): 9742409

Upload 2 files

Browse files
Files changed (2) hide show
  1. static/manifest.json +20 -0
  2. static/service-worker.js +20 -0
static/manifest.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "TaskBot AI",
3
+ "short_name": "TaskBot",
4
+ "start_url": "/",
5
+ "display": "standalone",
6
+ "background_color": "#ffffff",
7
+ "theme_color": "#007bff",
8
+ "icons": [
9
+ {
10
+ "src": "/static/icon-192.png",
11
+ "type": "image/png",
12
+ "sizes": "192x192"
13
+ },
14
+ {
15
+ "src": "/static/icon-512.png",
16
+ "type": "image/png",
17
+ "sizes": "512x512"
18
+ }
19
+ ]
20
+ }
static/service-worker.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ self.addEventListener('install', function(event) {
2
+ event.waitUntil(
3
+ caches.open('taskbot-cache').then(function(cache) {
4
+ return cache.addAll([
5
+ '/',
6
+ '/static/style.css',
7
+ '/static/script.js',
8
+ '/static/icon-192.png'
9
+ ]);
10
+ })
11
+ );
12
+ });
13
+
14
+ self.addEventListener('fetch', function(event) {
15
+ event.respondWith(
16
+ caches.match(event.request).then(function(response) {
17
+ return response || fetch(event.request);
18
+ })
19
+ );
20
+ });