Adjust version strings for release

This commit is contained in:
Fred Boniface 2023-05-06 21:03:57 +01:00
parent dc5efd7fe3
commit 25e014a9e3
3 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/* All Page Init */
const version = '2.0.0-testing'
const version = '2.0.0'
/* Feature Detectors */

View File

@ -44,7 +44,7 @@
<div id="crs-box">
<p>Enter a services start and end station CRS codes to see code options and stopping patterns.</p>
<p>Currently supported (Beta): GWR: Up/Dn SVB-EXD, Dn CDF-PNZ, Up/Dn GMV/CDF-PMH, HEx</p>
<p>Currently supported (Beta): GWR: Up/Dn SVB-EXD, Dn CDF-PNZ, Up/Dn GMV/CDF-PMH, HEx<br>Duplicate stopping patterns have been removed.</p>
<p id="auth-required">You need to be logged into a free <a href="./settings.html">rail staff version</a> account for this feature.</p>
<form action="javascript:findByOrigDest();">
<div id="crs-inputs">

8
sw.js
View File

@ -1,9 +1,9 @@
/* Service Worker */
const appVersion = '2.0.0-rc-20230505001'
const cacheName = `owlboard-${appVersion}`
const swVersion = '2.0.0-20230506'
const cacheName = `owlboard-${swVersion}`
const cacheIDs = [cacheName]
const staticCache = [
let staticCache = [
'/styles/fonts/firamono/firamono-500.woff2',
'/styles/fonts/firamono/firamono-regular.woff2',
'/styles/fonts/urwgothic/urwgothic.woff2',
@ -54,7 +54,7 @@ const dynamicCache = [
]
for(let i = 0; i < dynamicCache.length; i++) {
let item = dynamicCache[i] + `?${appVersion}`
let item = dynamicCache[i] + `?${swVersion}`
staticCache.push(item)
}