react-clear-cache
Advanced tools
Comparing version 1.0.16 to 1.0.17
@@ -20,3 +20,3 @@ import { useRef, useEffect, useState } from 'react'; | ||
setAppVersion(latestVersion); | ||
if (caches) { | ||
if ('caches' in window) { | ||
// Service worker cache should be cleared with caches.delete() | ||
@@ -23,0 +23,0 @@ caches.keys().then(function (names) { |
@@ -24,3 +24,3 @@ 'use strict'; | ||
setAppVersion(latestVersion); | ||
if (caches) { | ||
if ('caches' in window) { | ||
// Service worker cache should be cleared with caches.delete() | ||
@@ -27,0 +27,0 @@ caches.keys().then(function (names) { |
{ | ||
"name": "react-clear-cache", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "A component to manage application updates.", | ||
@@ -5,0 +5,0 @@ "author": "noahjohn9259", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
29683