diff options
| author | Christine Dodrill <me@christine.website> | 2018-11-13 07:30:55 -0800 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2018-11-13 07:30:55 -0800 |
| commit | e245d89daa6dffc441be07dcb81b985397446378 (patch) | |
| tree | 0d399b0de689f43fbbfaa979d939dca8aa03e716 /templates/base.html | |
| parent | bc8b7e5471e7f4984ee69af07d8e9632df01b85b (diff) | |
| parent | 8fe5504c3a5e9cd8409d5296d128603a231567ac (diff) | |
| download | xesite-e245d89daa6dffc441be07dcb81b985397446378.tar.xz xesite-e245d89daa6dffc441be07dcb81b985397446378.zip | |
Merge branch 'master' of git@github.com:Xe/site.git
Diffstat (limited to 'templates/base.html')
| -rw-r--r-- | templates/base.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html index 13722a0..c00bc1e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,6 +5,7 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="/css/hack.css" /> <link rel="stylesheet" href="/css/gruvbox-dark.css" /> + <link rel="manifest" href="/static/manifest.json" /> <link rel="alternate" type="application/rss+xml" href="https://christine.website/blog.rss" /> <link rel="alternate" type="application/atom+xml" href="https://christine.website/blog.atom" /> @@ -61,6 +62,15 @@ <footer> <blockquote>Copyright 2018 Christine Dodrill. Any and all opinions listed here are my own and not representative of my employer.</blockquote> </footer> + <script> + if (navigator.serviceWorker.controller) { + console.log("Active service worker found, no need to register"); + } else { + navigator.serviceWorker.register("/sw.js").then(function(reg) { + console.log("Service worker has been registered for scope:" + reg.scope); + }); + } + </script> </div> </body> </html> |
