Browse Source

Implementing Apple touch icon for PWAs

master
Mobius K 2 years ago
parent
commit
b38c533fc2
  1. BIN
      assets/apple-touch-icon.png
  2. 2
      scripts/service-worker.ts
  3. 1
      templates/layout.pug

BIN
assets/apple-touch-icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

2
scripts/service-worker.ts

@ -1,7 +1,7 @@
import { ServiceWorkerCache } from "shared/scripts/service-worker-cache";
// Identifier used to ensure browsers are caching the right version of assets
const cacheId = "3";
const cacheId = "4";
// Cache manipulator
const cache: ServiceWorkerCache = new ServiceWorkerCache();

1
templates/layout.pug

@ -12,6 +12,7 @@ html(lang="en")
title BlueTooth Class
link(rel="shortcut icon" href="favicon.ico")
link(rel="apple-touch-icon" href="apple-touch-icon.png")
link(rel="stylesheet" href="bluetooth-class.css")
link(rel="manifest" href="manifest.json" crossorigin="use-credentials")

Loading…
Cancel
Save