|
5 | 5 | <meta name="theme-color" content="#00d1b2"> |
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> |
7 | 7 | <link rel="manifest" href="/manifest.json"> |
8 | | - <link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png"> |
9 | | - <link rel="icon" type="image/png" href="/favicons/favicon-32x32.png" sizes="32x32"> |
10 | | - <link rel="icon" type="image/png" href="/favicons/favicon-16x16.png" sizes="16x16"> |
11 | | - <link rel="manifest" href="/manifest.json"> |
12 | | - <link rel="mask-icon" href="/favicons/safari-pinned-tab.svg" color="#5bbad5"> |
| 8 | + <link rel="apple-touch-icon" sizes="180x180" href="favicons/apple-touch-icon.png"> |
| 9 | + <link rel="icon" type="image/png" href="favicons/favicon-32x32.png" sizes="32x32"> |
| 10 | + <link rel="icon" type="image/png" href="favicons/favicon-16x16.png" sizes="16x16"> |
| 11 | + <link rel="manifest" href="manifest.json"> |
| 12 | + <link rel="mask-icon" href="favicons/safari-pinned-tab.svg" color="#5bbad5"> |
13 | 13 | <title>React Client</title> |
14 | 14 | </head> |
15 | 15 | <body> |
|
18 | 18 | <script src="https://cdnjs.cloudflare.com/ajax/libs/react-router/2.8.1/ReactRouter.min.js" integrity="sha256-Ve10xzUoKZr2up5joKtdW0RfY6R/6nWBO0x8AuOxp1s=" crossorigin="anonymous"></script> |
19 | 19 | <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react-dom.min.js" integrity="sha256-JIW8lNqN2EtqC6ggNZYnAdKMJXRQfkPMvdRt+b0/Jxc=" crossorigin="anonymous"></script> |
20 | 20 | <script async src="dist/bundle.min.js"></script> |
| 21 | + <script> |
| 22 | + // Check for browser support of service worker |
| 23 | + if ('serviceWorker' in navigator) { |
| 24 | + navigator.serviceWorker.register('service-worker.js') |
| 25 | + .then(function(registration) { |
| 26 | + // Successful registration |
| 27 | + console.log('Hooray. Registration successful, scope is:', registration.scope); |
| 28 | + }) |
| 29 | + .catch(function(error) { |
| 30 | + // Failed registration, service worker won’t be installed |
| 31 | + console.log('Whoops. Service worker registration failed, error:', error); |
| 32 | + }); |
| 33 | + } |
| 34 | + </script> |
21 | 35 | <noscript> |
22 | 36 | <p>Ops! JavaScript is disabled. You can't use this app.</p> |
23 | 37 | </noscript> |
|
0 commit comments