Refactor service worker cache array for improved readability by consolidating URL entries into a single line.
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
/* eslint-env serviceworker */
|
||||
const CACHE_NAME = 'quad4-linking-tool-v1';
|
||||
const urlsToCache = [
|
||||
'/',
|
||||
'/favicon.svg',
|
||||
'/manifest.json',
|
||||
];
|
||||
const urlsToCache = ['/', '/favicon.svg', '/manifest.json'];
|
||||
|
||||
self.addEventListener('install', (event) => {
|
||||
event.waitUntil(
|
||||
|
||||
Reference in New Issue
Block a user