Skip to content
Snippets Groups Projects
Commit 6563144f authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch '330-drop-unused-functions-in-serviceworker' into 'master'

Resolve "Drop unused functions in serviceworker"

Closes #330

See merge request !412
parents 70b39a38 b3bfd9fd
No related branches found
No related tags found
1 merge request!412Resolve "Drop unused functions in serviceworker"
Pipeline #5021 passed
......@@ -5,23 +5,6 @@ const CACHE = 'aleksis-cache';
const offlineFallbackPage = 'offline/';
function pathComparer(requestUrl, pathRegEx) {
return requestUrl.match(new RegExp(pathRegEx));
}
function comparePaths(requestUrl, pathsArray) {
if (requestUrl) {
for (let index = 0; index < pathsArray.length; index++) {
const pathRegEx = pathsArray[index];
if (pathComparer(requestUrl, pathRegEx)) {
return true;
}
}
}
return false;
}
self.addEventListener("install", function (event) {
console.log("[AlekSIS PWA] Install Event processing.");
......
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