Skip to content

Commit

Permalink
🩹 fix: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayanTheNerd committed Jul 21, 2024
1 parent 5c45a9f commit c782dd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/serviceWorkerPWA.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Files to cache
const CACHE_VERSION = '1.1.1';
const CACHE_VERSION = '1.1.2';
const appCacheName = `Virtual_Keyboard-v${CACHE_VERSION}`;
const appContentToCache = [
'../../',
Expand Down Expand Up @@ -47,7 +47,7 @@ self.addEventListener('fetch', event => {
const { request, request: { url } } = event;
if (!url.startsWith('https')) return;

const getCacehdContent = async () => {
const getCachedContent = async () => {
const cachedContent = await caches.match(request);
if (cachedContent) return cachedContent;

Expand All @@ -57,5 +57,5 @@ self.addEventListener('fetch', event => {
return response;
};

event.respondWith(getCacehdContent());
event.respondWith(getCachedContent());
});

0 comments on commit c782dd2

Please sign in to comment.