Update sw.js
This commit is contained in:
		
							parent
							
								
									7b974575f8
								
							
						
					
					
						commit
						1fbcc648a6
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -52,8 +52,6 @@ self.addEventListener('push', ev => {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		const { type, body } = ev.data.json();
 | 
							const { type, body } = ev.data.json();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		console.log(type, body);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		const n = composeNotification(type, body);
 | 
							const n = composeNotification(type, body);
 | 
				
			||||||
		return self.registration.showNotification(n.title, {
 | 
							return self.registration.showNotification(n.title, {
 | 
				
			||||||
			body: n.body,
 | 
								body: n.body,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue