add ios icons and update manifest

This commit is contained in:
Anthony 2021-06-01 16:10:39 +02:00 committed by Jeremy Kauffman
parent f0cd159235
commit ab83357fd0
6 changed files with 27 additions and 11 deletions

View file

@ -63,6 +63,7 @@
</style>
<link rel="manifest" href="./public/pwa/manifest.json"/>
<link rel="apple-touch-icon" sizes="180x180" href="./public/pwa/icon-180.png">
<script src="./public/pwa/serviceWorker.js"></script>
<!-- VARIABLE_HEAD_BEGIN -->

BIN
static/pwa/icon-180.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
static/pwa/icon-192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -1,14 +1,29 @@
{
"name": "LBRY",
"short_name": "LBRY",
"name": "Odysee",
"short_name": "Odysee",
"theme_color": "#183793",
"background_color": "#FAFAFA",
"display": "minimal-ui",
"description": "Odysee is a place where you can find great videos, music, ebooks, and more: imagine a vast digital library that is available on all of your devices.",
"scope": "/",
"start_url": "/",
"icons": [{
"src": "/public/pwa/icon-512.png",
"type" : "image/png",
"sizes": "512x512"
}]
"icons": [
{
"src": "/public/pwa/icon-192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "/public/pwa/icon-512.png",
"type": "image/png",
"sizes": "512x512"
}
,
{
"src": "/public/pwa/icon-180.png",
"type": "image/png",
"sizes": "180x180"
}
],
"prefer_related_applications": false
}

View file

@ -1,3 +1,3 @@
self.addEventListener('fetch', function(event) {
console.log(`start server worker`);
// console.log(`start server worker`); // service worker started
});

View file

@ -1,7 +1,7 @@
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./public/pwa/sw.js').then(function(reg) {
console.log('Successfully registered service worker', reg);
navigator.serviceWorker.register('./public/pwa/serviceWorker.js').then(function(reg) {
// console.log('Successfully registered service worker', reg);
}).catch(function(err) {
console.warn('Error whilst registering service worker', err);
// console.warn('Error whilst registering service worker', err);
});
}