Skip to content

Commit d593123

Browse files
committed
edit cache files scope
1 parent 8758504 commit d593123

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>Weather</title>
99
<!-- Insert link to stylesheet here -->
1010
<link rel="stylesheet" href="styles/ud811.css">
11-
<link rel="icon" href="/ud811/1-12-skeleton/images/icons/icon-512x512.png">
11+
<link rel="icon" href="images/icons/icon-512x512.png">
1212
</head>
1313
<body>
1414

service-worker.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
var cacheName = 'weatherPWA-v2'; // for the app shell
22
var dataCacheName = 'weatherData-v2'; // for the app content data
33
var filesToCache = [
4-
'/',
5-
'/index.html',
6-
'/scripts/app.js',
7-
'/scripts/localforage-1.4.0.js',
8-
'/styles/ud811.css',
9-
'/images/clear.png',
10-
'/images/cloudy-scattered-showers.png',
11-
'/images/cloudy.png',
12-
'/images/fog.png',
13-
'/images/ic_add_white_24px.svg',
14-
'/images/ic_refresh_white_24px.svg',
15-
'/images/partly-cloudy.png',
16-
'/images/rain.png',
17-
'/images/scattered-showers.png',
18-
'/images/sleet.png',
19-
'/images/snow.png',
20-
'/images/thunderstorm.png',
21-
'/images/wind.png'
4+
'',
5+
'index.html',
6+
'scripts/app.js',
7+
'scripts/localforage-1.4.0.js',
8+
'styles/ud811.css',
9+
'images/clear.png',
10+
'images/cloudy-scattered-showers.png',
11+
'images/cloudy.png',
12+
'images/fog.png',
13+
'images/ic_add_white_24px.svg',
14+
'images/ic_refresh_white_24px.svg',
15+
'images/partly-cloudy.png',
16+
'images/rain.png',
17+
'images/scattered-showers.png',
18+
'images/sleet.png',
19+
'images/snow.png',
20+
'images/thunderstorm.png',
21+
'images/wind.png'
2222
];
2323

2424
var weatherAPIUrlBase = 'https://publicdata-weather.firebaseio.com/';

0 commit comments

Comments
 (0)