mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
fix: service worker fn
This commit is contained in:
parent
5904e9e7c6
commit
e9113730b9
2 changed files with 2 additions and 2 deletions
2
sw.js
2
sw.js
|
|
@ -21,7 +21,7 @@ registerRoute(
|
||||||
request.destination === "script" &&
|
request.destination === "script" &&
|
||||||
!url.pathname.endsWith("min.js") &&
|
!url.pathname.endsWith("min.js") &&
|
||||||
!url.pathname.includes("versioning.js") &&
|
!url.pathname.includes("versioning.js") &&
|
||||||
!url.contains("google"),
|
!url.pathname.includes("google"),
|
||||||
new StaleWhileRevalidate({
|
new StaleWhileRevalidate({
|
||||||
cacheName: "fmg-scripts",
|
cacheName: "fmg-scripts",
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
*
|
*
|
||||||
* Example: 1.102.2 -> Major version 1, Minor version 102, Patch version 2
|
* 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");
|
if (parseMapVersion(VERSION) !== VERSION) alert("versioning.js: Invalid format or parsing function");
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue