oops
This commit is contained in:
		
							parent
							
								
									56a1deb9d5
								
							
						
					
					
						commit
						8b0aabb4cb
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -405,8 +405,12 @@ export default class MiOS extends EventEmitter {
 | 
				
			||||||
			});
 | 
								});
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							// Whether use raw version script
 | 
				
			||||||
 | 
							const raw = (localStorage.getItem('useRawScript') == 'true' && this.debug)
 | 
				
			||||||
 | 
								|| process.env.NODE_ENV != 'production';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// The path of service worker script
 | 
							// The path of service worker script
 | 
				
			||||||
		const sw = `/sw.${version}.${lang}.js`;
 | 
							const sw = `/sw.${version}.${lang}.${raw ? 'raw' : 'min'}.js`;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// Register service worker
 | 
							// Register service worker
 | 
				
			||||||
		navigator.serviceWorker.register(sw).then(registration => {
 | 
							navigator.serviceWorker.register(sw).then(registration => {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue