summaryrefslogblamecommitdiffstats
path: root/redfox.js
blob: fea1579584c1289322e4f855c5d3a5a49153febf (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                                
// *****************************************************
// ************** nastavitev spremenljivk  *************
// *****************************************************
var author = "Sebastjan Dobnik";

// Register the service worker
if ('serviceWorker' in navigator) {
	navigator.serviceWorker.register('/service-worker.js')
		.then(function(registration) {
			console.log('sw reg succ, scope: ', registration.scope);
		})
		.catch(function(err) {
    			console.log('ServiceWorker registration failed: ', err);
    		});
}