You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							25 lines
						
					
					
						
							800 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							25 lines
						
					
					
						
							800 B
						
					
					
				
								<!DOCTYPE html>
							 | 
						|
								<html>
							 | 
						|
								    <head>
							 | 
						|
								        <meta charset="utf-8" />
							 | 
						|
								        <title>Webpack App</title>
							 | 
						|
								    </head>
							 | 
						|
								    <body>
							 | 
						|
								        <h1>Hello world!</h1>
							 | 
						|
								        <h2>Tip: Check your console</h2>
							 | 
						|
								        <script>
							 | 
						|
								            if ('serviceWorker' in navigator) {
							 | 
						|
								                window.addEventListener('load', () => {
							 | 
						|
								                    navigator.serviceWorker
							 | 
						|
								                        .register('/sw.js')
							 | 
						|
								                        .then((registration) => {
							 | 
						|
								                            console.log('SW registered: ', registration);
							 | 
						|
								                        })
							 | 
						|
								                        .catch((registrationError) => {
							 | 
						|
								                            console.log('SW registration failed: ', registrationError);
							 | 
						|
								                        });
							 | 
						|
								                });
							 | 
						|
								            }
							 | 
						|
								        </script>
							 | 
						|
								    </body>
							 | 
						|
								</html>
							 | 
						|
								
							 |