mirror of
				https://github.com/nkanaev/yarr.git
				synced 2025-10-31 06:53:30 +00:00 
			
		
		
		
	Add explanation for ./sw.js
				
					
				
			This commit is contained in:
		| @@ -15,6 +15,8 @@ | ||||
|         window.app.authenticated = {% .authenticated %} | ||||
|  | ||||
|         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") | ||||
|         } | ||||
|     </script> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user