Update index.html
Browse files- index.html +2 -4
index.html
CHANGED
@@ -1037,14 +1037,12 @@ async function registerServiceWorker() {
|
|
1037 |
async function verifyCache(filesToCache) {
|
1038 |
const maxAttempts = 10;
|
1039 |
const delay = 500; // 500msごとに確認
|
1040 |
-
|
1041 |
-
console.log('cachedUrls:', cachedUrls);
|
1042 |
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
1043 |
const cache = await caches.open('media-player-cache-v1');
|
1044 |
const cachedRequests = await cache.keys();
|
1045 |
const cachedUrls = cachedRequests.map(request => request.url.replace(location.origin, ''));
|
1046 |
-
|
1047 |
-
console.log('cachedUrls:', cachedUrls);
|
1048 |
// すべてのファイルがキャッシュされているか確認
|
1049 |
const allCached = filesToCache.every(file => cachedUrls.includes(file));
|
1050 |
|
|
|
1037 |
async function verifyCache(filesToCache) {
|
1038 |
const maxAttempts = 10;
|
1039 |
const delay = 500; // 500msごとに確認
|
1040 |
+
|
|
|
1041 |
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
1042 |
const cache = await caches.open('media-player-cache-v1');
|
1043 |
const cachedRequests = await cache.keys();
|
1044 |
const cachedUrls = cachedRequests.map(request => request.url.replace(location.origin, ''));
|
1045 |
+
|
|
|
1046 |
// すべてのファイルがキャッシュされているか確認
|
1047 |
const allCached = filesToCache.every(file => cachedUrls.includes(file));
|
1048 |
|