add apple touch icons

This commit is contained in:
Nolan Lawson 2018-03-17 00:36:37 -07:00
parent b2f8f356ed
commit ad36d9274d
4 changed files with 9 additions and 6 deletions

BIN
assets/apple-icon-120.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
assets/apple-icon-180.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

View file

@ -8,6 +8,8 @@
<link rel='manifest' href='/manifest.json' > <link rel='manifest' href='/manifest.json' >
<link id='theFavicon' rel='icon' type='image/png' href='/favicon.png' > <link id='theFavicon' rel='icon' type='image/png' href='/favicon.png' >
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120.png" >
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180.png" >
<style> <style>
/* auto-generated w/ build-sass.js */ /* auto-generated w/ build-sass.js */

View file

@ -5,6 +5,7 @@ const ASSETS = `cache${timestamp}`
// `assets` is an array of everything in the `assets` directory // `assets` is an array of everything in the `assets` directory
const toCache = __shell__.concat(__assets__) const toCache = __shell__.concat(__assets__)
.filter(filename => !filename.endsWith('.map')) .filter(filename => !filename.endsWith('.map'))
.filter(filename => !filename.startsWith('apple-icon'))
const cached = new Set(toCache) const cached = new Set(toCache)
// `routes` is an array of `{ pattern: RegExp }` objects that // `routes` is an array of `{ pattern: RegExp }` objects that