From 8d5adc04645e3e71423f16869f39b8d79969bccd Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Thu, 30 Apr 2020 06:54:48 +0300 Subject: Install Wekan to mobile homescreen icon and use fullscreen PWA. Docs at https://github.com/wekan/wekan/wiki/PWA Thanks to xet7 ! Closes #2879 --- client/00-startup.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 client/00-startup.js (limited to 'client/00-startup.js') 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'); + }); +} -- cgit v1.2.3-1-g7c22