-
Notifications
You must be signed in to change notification settings - Fork 1
/
manifest.js
52 lines (52 loc) · 1.48 KB
/
manifest.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
export default {
'manifest': {
'name': 'ChaPy',
'short_name': 'ChaPy',
'icons': [
{
'src': '/chapy512-beta.png',
'sizes': '512x512',
'type': 'image/png',
},
{
'src': '/chapy192-beta.png',
'type': 'image/png',
'sizes': '192x192',
},
{
'src': '/favicon-beta.ico',
'type': 'image/x-icon',
'sizes': '16x16',
},
],
'start_url': '/',
'scope': '/',
'background_color': '#441300',
'theme_color': '#441300',
'display': 'standalone',
'shortcuts': [
{
'name': 'Random chat',
'short_name': 'Random chat',
'description': 'Enter chat with random id',
'url': '/new_chat',
'icons': [{'src': '/plus.png', 'sizes': '96x96'}],
},
{
'name': 'Scanner',
'short_name': 'Scan QR-code',
'description': 'Scan QR-code of shared chat',
'url': '/scanner',
'icons': [{'src': '/scanner.png', 'sizes': '96x96'}],
},
],
},
'workbox': {
'runtimeCaching': [
{
'urlPattern': ({url}) => url.pathname.startsWith('/'),
'handler': 'CacheFirst',
},
],
},
};