summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/document_details.html6
-rw-r--r--templates/home.html5
-rw-r--r--templates/search_results.html5
3 files changed, 15 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
diff --git a/templates/home.html b/templates/home.html
index 31de085..5b5cd6b 100644
--- a/templates/home.html
+++ b/templates/home.html
@@ -22,5 +22,10 @@
</div>
</form>
</div>
+ <script>
+ if (typeof navigator.serviceWorker !== 'undefined') {
+ navigator.serviceWorker.register('/static/pwabuilder-sw.js')
+ }
+ </script>
</body>
</html> \ No newline at end of file
diff --git a/templates/search_results.html b/templates/search_results.html
index 28b7b24..bb544be 100644
--- a/templates/search_results.html
+++ b/templates/search_results.html
@@ -94,5 +94,10 @@
</section>
{{ end }}
+ <script>
+ if (typeof navigator.serviceWorker !== 'undefined') {
+ navigator.serviceWorker.register('/static/pwabuilder-sw.js')
+ }
+ </script>
</body>
</html> \ No newline at end of file