Skip to content

Commit b34946a

Browse files
committed
Making PWA ready2
1 parent d6f198a commit b34946a

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ <h2>FAQ</h2>
9999
<script>
100100
if ('serviceWorker' in navigator) {
101101
window.addEventListener('load', () => {
102-
navigator.serviceWorker.register('service-worker.js')
102+
navigator.serviceWorker.register('/service-worker.js')
103103
.then(() => console.log('SW registered'))
104104
.catch(err => console.error('SW registration failed:', err));
105105
});

site.webmanifest

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,33 @@
5959
"purpose": "maskable"
6060
}
6161
],
62-
"related_applications": [],
63-
"prefer_related_applications": false
62+
"shortcuts": [
63+
{
64+
"name": "New WhatsApp Chat",
65+
"short_name": "WhatsApp",
66+
"description": "Start a new chat on WhatsApp",
67+
"url": "/?action=whatsapp",
68+
"icons": [{ "src": "identity/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" }]
69+
},
70+
{
71+
"name": "New Telegram Chat",
72+
"short_name": "Telegram",
73+
"description": "Start a new chat on Telegram",
74+
"url": "/?action=telegram",
75+
"icons": [{ "src": "identity/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" }]
76+
},
77+
{
78+
"name": "New Signal Chat",
79+
"short_name": "Signal",
80+
"description": "Start a new chat on Signal",
81+
"url": "/?action=signal",
82+
"icons": [{ "src": "identity/android-chrome-192x192.png", "sizes": "192x192", "type": "image/png" }]
83+
}
84+
],
85+
"prefer_related_applications": false,
86+
"categories": [
87+
"productivity",
88+
"social",
89+
"utilities"
90+
]
6491
}

0 commit comments

Comments
 (0)