mirror of
				https://github.com/nkanaev/yarr.git
				synced 2025-10-31 15:02:57 +00:00 
			
		
		
		
	Add explanation for ./sw.js
				
					
				
			This commit is contained in:
		| @@ -15,6 +15,8 @@ | |||||||
|         window.app.authenticated = {% .authenticated %} |         window.app.authenticated = {% .authenticated %} | ||||||
|  |  | ||||||
|         if ("serviceWorker" in navigator) { |         if ("serviceWorker" in navigator) { | ||||||
|  |             // we use `./sw.js` instead of `./static/javascripts/sw.js` since the latter would not work with | ||||||
|  |             // `./manifest.json`, and it leads to uninstallable PWA | ||||||
|             navigator.serviceWorker.register("./sw.js") |             navigator.serviceWorker.register("./sw.js") | ||||||
|         } |         } | ||||||
|     </script> |     </script> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user