tylermullen commited on
Commit
05a44a1
·
verified ·
1 Parent(s): 39533fd

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -0
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
  }