diff options
author | navanchauhan <navanchauhan@gmail.com> | 2022-10-17 23:58:20 -0600 |
---|---|---|
committer | navanchauhan <navanchauhan@gmail.com> | 2022-10-17 23:58:20 -0600 |
commit | 01076278493fd722fc658e7d51b49267c9c37dff (patch) | |
tree | 56a111a0bdf3e4674fb832f766b6ec214699c59a /templates/document_details.html | |
parent | 2231c15975634a730d213c51ec532177c0ddcf71 (diff) |
add service worker
Diffstat (limited to 'templates/document_details.html')
-rw-r--r-- | templates/document_details.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/document_details.html b/templates/document_details.html index 9e98879..e387d1b 100644 --- a/templates/document_details.html +++ b/templates/document_details.html @@ -91,6 +91,10 @@ </div> </div> </section> - + <script> + if (typeof navigator.serviceWorker !== 'undefined') { + navigator.serviceWorker.register('/static/pwabuilder-sw.js') + } + </script> </body> </html>
\ No newline at end of file |