mirror of
https://github.com/zumbiepig/MineXLauncher.git
synced 2025-06-26 10:05:10 +00:00
.
This commit is contained in:
@@ -11,17 +11,9 @@ self.addEventListener('install', (event) => {
|
||||
|
||||
for (const asset of cacheAssets) {
|
||||
await cache.add(asset);
|
||||
cachedAssets++;
|
||||
const progress = `${cachedAssets}/${totalAssets}`;
|
||||
const progress = `${++cachedAssets}/${totalAssets}`;
|
||||
|
||||
self.clients.matchAll().then((clients) => {
|
||||
clients.forEach((client) => {
|
||||
client.postMessage({
|
||||
title: 'sw-install-progress',
|
||||
message: progress,
|
||||
});
|
||||
});
|
||||
});
|
||||
console.log(`Cached: ${asset} (${progress})`);
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user