Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
|
@@ -391,6 +391,7 @@ clearCacheButton.addEventListener('click', async () => {
|
|
| 391 |
const opfs = await navigator.storage.getDirectory();
|
| 392 |
await opfs.removeEntry(cacheFileName);
|
| 393 |
console.log('Cache cleared successfully.');
|
|
|
|
| 394 |
} catch (error) {
|
| 395 |
console.error('Error clearing cache:', error);
|
| 396 |
}
|
|
|
|
| 391 |
const opfs = await navigator.storage.getDirectory();
|
| 392 |
await opfs.removeEntry(cacheFileName);
|
| 393 |
console.log('Cache cleared successfully.');
|
| 394 |
+
clearCacheButton.style.display = 'none';
|
| 395 |
} catch (error) {
|
| 396 |
console.error('Error clearing cache:', error);
|
| 397 |
}
|