mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Removed serviceworker, yet again
This commit is contained in:
		@@ -93,7 +93,7 @@ var connection_options = {
 | 
			
		||||
var fromFront = false;
 | 
			
		||||
var fromChannel = false;
 | 
			
		||||
 | 
			
		||||
try{
 | 
			
		||||
try{/*
 | 
			
		||||
	if (navigator.serviceWorker && window.location.host != "zoff.dev") {
 | 
			
		||||
		navigator.serviceWorker.register('/service-worker.js', {scope: '/'})
 | 
			
		||||
		.then(function (registration) {
 | 
			
		||||
@@ -104,10 +104,11 @@ try{
 | 
			
		||||
		});
 | 
			
		||||
	} else {
 | 
			
		||||
		Helper.log('Service Worker is not supported in this browser.');
 | 
			
		||||
	}/*
 | 
			
		||||
	}*/
 | 
			
		||||
	
 | 
			
		||||
	navigator.serviceWorker.getRegistration('/').then(function(registration) {
 | 
			
		||||
	registration.unregister();
 | 
			
		||||
});*/
 | 
			
		||||
		registration.unregister();
 | 
			
		||||
	});
 | 
			
		||||
 | 
			
		||||
} catch(e) {}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user