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

@ -1,13 +1,15 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset='utf-8'> <meta charset='utf-8' >
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1" >
<meta id='theThemeColor' name='theme-color' content='#4169e1'> <meta id='theThemeColor' name='theme-color' content='#4169e1' >
<meta name="description" content="A mobile-optimized web client for Mastodon."> <meta name="description" content="A mobile-optimized web client for Mastodon." >
<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