summaryrefslogtreecommitdiffstats
path: root/client/00-startup.js
diff options
context:
space:
mode:
Diffstat (limited to 'client/00-startup.js')
-rw-r--r--client/00-startup.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/00-startup.js b/client/00-startup.js
new file mode 100644
index 00000000..4a717b67
--- /dev/null
+++ b/client/00-startup.js
@@ -0,0 +1,6 @@
+// PWA
+if ('serviceWorker' in navigator) {
+ window.addEventListener('load', function() {
+ navigator.serviceWorker.register('/pwa-service-worker.js');
+ });
+}