snapdrop

A Progressive Web App for local file sharing
git clone http://git.hanabi.in/repos/snapdrop.git
Log | Files | Refs | README | LICENSE

commit 819697d697f956667ebb764bae645f67f2ba3d90
parent c68a7ad987a4b99c72213052711e9c197d0c3f40
Author: RobinLinus <robinlinus@users.noreply.github.com>
Date:   Tue, 12 Mar 2019 23:38:32 +0100

Cache favicon with ServiceWorker

Diffstat:
Mclient/index.html | 4++--
Mclient/service-worker.js | 5+++--
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/client/index.html b/client/index.html @@ -20,8 +20,8 @@ <meta name="twitter:description" content="Instantly share images, videos, PDFs, and links with people nearby. Peer2Peer and Open Source. No Setup, No Signup."> <meta name="og:description" content="Instantly share images, videos, PDFs, and links with people nearby. Peer2Peer and Open Source. No Setup, No Signup."> <!-- Icons --> - <link rel="icon" sizes="96x96" href="images/favicon-96x96.png?"> - <link rel="shortcut icon" href="images/favicon-96x96.png?"> + <link rel="icon" sizes="96x96" href="images/favicon-96x96.png"> + <link rel="shortcut icon" href="images/favicon-96x96.png"> <link rel="apple-touch-icon" href="images/apple-touch-icon.png"> <meta name="msapplication-TileImage" content="images/mstile-150x150.png"> <link rel="fluid-icon" type="image/png" href="images/android-chrome-192x192.png"> diff --git a/client/service-worker.js b/client/service-worker.js @@ -1,10 +1,11 @@ -var CACHE_NAME = 'snapdrop-cache-v1.0'; +var CACHE_NAME = 'snapdrop-cache-v1.01'; var urlsToCache = [ '/', '/styles.css', '/scripts/network.js', '/scripts/ui.js', - '/sounds/blop.mp3' + '/sounds/blop.mp3', + '/images/favicon-96x96.png' ]; self.addEventListener('install', function(event) {