summaryrefslogtreecommitdiffstats
path: root/redfox.js
blob: 9c26cf539e6e583dda5d53727251155a4305e100 (plain) (blame)
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('/sw.js')
		.then(function(registration) {
			console.log('sw reg succ, scope: ', registration.scope);
		})
		.catch(function(err) {
    			console.log('ServiceWorker registration failed: ', err);
    		});
}