This repository was archived by the owner on Dec 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 36
36
To begin the development, run `npm start` or `yarn start`.
37
37
To create a production bundle, use `npm run build` or `yarn build`.
38
38
--> </ body >
39
- < script >
39
+ <!-- < script>
40
40
if ('serviceWorker' in navigator) {
41
41
window.addEventListener('load', () => {
42
42
console.log('serviceWorker custom');
46
46
.catch((err) => console.log('Failure: ', err));
47
47
});
48
48
}
49
- </ script >
49
+ </script> -->
50
50
</ html >
Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ const CACHE_NAME = 'version-1';
2
2
const urlsToCache = [
3
3
'index.html' ,
4
4
'offline.html' ,
5
- 'https://todo-restapi-app.herokuapp.com/api/todos?all=true ' ,
5
+ 'https://todo-restapi-app.herokuapp.com/api/todos' ,
6
6
'/todo' ,
7
+ 'https://todo-restapi-app.herokuapp.com/api/' ,
7
8
] ;
8
9
9
10
const self = this ;
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="UTF-8 " />
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6
- < title > Weather App</ title >
6
+ < title > Todo App</ title >
7
7
< style type ="text/css ">
8
8
html {
9
9
height : 100% ;
Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ ReactDOM.render(
21
21
// If you want your app to work offline and load faster, you can change
22
22
// unregister() to register() below. Note this comes with some pitfalls.
23
23
// Learn more about service workers: https://bit.ly/CRA-PWA
24
- serviceWorker . unregister ( ) ;
24
+ serviceWorker . register ( ) ;
You can’t perform that action at this time.
0 commit comments