diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2015-11-16 23:58:34 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2015-11-17 00:00:38 +0100 |
commit | fba835cb67c901770247f5140838aae49abeb900 (patch) | |
tree | a3ae550b17be1d0e3c2f9752e204a85a8780ef88 /templates | |
parent | 6112adeacecb29fc378d2861d0428c26a2761147 (diff) | |
download | hesla-fba835cb67c901770247f5140838aae49abeb900.tar.gz |
Actually, I have not removed appcache yet.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base.html | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html index 66e4923..b543d80 100644 --- a/templates/base.html +++ b/templates/base.html @@ -12,7 +12,7 @@ {{ word.ref }} {%- endif %}</p>{%- endmacro -%} <!DOCTYPE html> -<html manifest="hesla.appcache"> +<html> <head> <meta charset="utf-8"/> <meta content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=yes" name="viewport"/> @@ -24,6 +24,15 @@ display: none; } </style> + <script type="text/javascript"> + if ('serviceWorker' in navigator) { + navigator.serviceWorker.register('/sworker.js').then(function(reg) { + console.log('Yey!', reg); + }).catch(function(err) { + console.log('Boo!', err); + }); + } + </script> </head> <body> <noscript>{{ noscript_message }}</noscript> |