Skip to content
Snippets Groups Projects
Commit 1a7a41da authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files

fix: sw requestURL

parent 2e63a3d8
No related branches found
Tags v6.0.1
No related merge requests found
Pipeline #9043 passed
const CACHE_NAME = 'hubl-store-swfc14'; const CACHE_NAME = 'hubl-store-swfc15';
self.addEventListener('install', function (e) { self.addEventListener('install', function (e) {
self.skipWaiting(); self.skipWaiting();
...@@ -72,7 +72,7 @@ self.addEventListener('fetch', function (event) { ...@@ -72,7 +72,7 @@ self.addEventListener('fetch', function (event) {
} else { } else {
if ( if (
/unpkg/.test(requestURL.origin) || /unpkg/.test(requestURL.origin) ||
/skypack/.test(request.origin) || /skypack/.test(requestURL.origin) ||
/jspm/.test(requestURL.origin) || /jspm/.test(requestURL.origin) ||
/jsdeliver/.test(requestURL.origin) || /jsdeliver/.test(requestURL.origin) ||
/cdn/.test(requestURL.origin) || /cdn/.test(requestURL.origin) ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment