initial commit
This commit is contained in:
commit
ff607ff17d
8 changed files with 3866 additions and 0 deletions
13
js/main.js
Normal file
13
js/main.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
window.onload = () => {
|
||||
'use strict';
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('sw.js', {
|
||||
scope: '/map/'
|
||||
}).then(function (reg) { // registration worked
|
||||
console.log('Registration succeeded. Scope is ' + reg.scope);
|
||||
}).catch(function (error) { // registration failed
|
||||
console.log('Registration failed with ' + error);
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue