From 0a8fbff321081fc5ad0c587b4cf985a9049b78ff Mon Sep 17 00:00:00 2001 From: Said Tahsin Dane Date: Sat, 14 Mar 2015 00:47:13 +0200 Subject: [PATCH] service-worker --- _includes/head.html | 13 +++++++++++++ manifest.json | 9 ++++++--- service-worker.js | 2 ++ 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 service-worker.js diff --git a/_includes/head.html b/_includes/head.html index a1ec1dc..39c3ebd 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -51,4 +51,17 @@ + + diff --git a/manifest.json b/manifest.json index 3903b96..a820ae2 100644 --- a/manifest.json +++ b/manifest.json @@ -8,13 +8,16 @@ layout: null { "src": "{{ site.baseurl }}/img/favicons/favicon-96x96.png", "sizes": "96x96", - "type": "image/png" + "type": "image/png", + "density": "2.0" }, { "src": "{{ site.baseurl }}/img/favicons/apple-touch-icon-144x144.png", "sizes": "144x144", - "type": "image/png" + "type": "image/png", + "density": "3.0" } ], - "display": "standalone" + "display": "standalone", + "start_url": "{{ site.baseurl }}/index.html" } \ No newline at end of file diff --git a/service-worker.js b/service-worker.js new file mode 100644 index 0000000..128cd99 --- /dev/null +++ b/service-worker.js @@ -0,0 +1,2 @@ +// Empty service worker for App Install banners to work. +// Can be implemented to have offline and sync support.