From e9113730b9a333015bbe10161695039a9fc46120 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Fri, 20 Sep 2024 15:40:10 +0200 Subject: [PATCH] fix: service worker fn --- sw.js | 2 +- versioning.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sw.js b/sw.js index ac7690ed..bd0382c6 100644 --- a/sw.js +++ b/sw.js @@ -21,7 +21,7 @@ registerRoute( request.destination === "script" && !url.pathname.endsWith("min.js") && !url.pathname.includes("versioning.js") && - !url.contains("google"), + !url.pathname.includes("google"), new StaleWhileRevalidate({ cacheName: "fmg-scripts", plugins: [ diff --git a/versioning.js b/versioning.js index 6d6d5ccc..c138741c 100644 --- a/versioning.js +++ b/versioning.js @@ -12,7 +12,7 @@ * * Example: 1.102.2 -> Major version 1, Minor version 102, Patch version 2 */ -const VERSION = "1.104.3"; +const VERSION = "1.104.4"; if (parseMapVersion(VERSION) !== VERSION) alert("versioning.js: Invalid format or parsing function"); {