diff --git a/aleksis/core/static/js/serviceworker.js b/aleksis/core/static/js/serviceworker.js index a935090fd64732a3762655ea1e63654cac905208..818e27cb7d28e820431a4ac28ba6fdf0c422deb7 100644 --- a/aleksis/core/static/js/serviceworker.js +++ b/aleksis/core/static/js/serviceworker.js @@ -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.");