Version String:

- Bump to 1.0.8
 - Read from index.html and load string in to localStorage
This commit is contained in:
Fred Boniface 2023-03-10 22:01:13 +00:00
parent 3a24d8ef2e
commit c9d231fd7e
3 changed files with 3 additions and 2 deletions

View File

@ -64,7 +64,7 @@
</div> </div>
<!-- Footer --> <!-- Footer -->
<footer> <footer>
<p>Created by <a href="https://fredboniface.co.uk" target="_blank" rel="noreferrer noopener">Fred Boniface</a> - 1.0.7</p> <p>Created by <a href="https://fredboniface.co.uk" target="_blank" rel="noreferrer noopener">Fred Boniface</a> - <span id="ver_str">1.0.8</span></p>
</footer> </footer>
</body> </body>
</html> </html>

View File

@ -8,6 +8,7 @@ if ("serviceWorker" in navigator) {
async function pageInit() { async function pageInit() {
await loadQuickLinks(); await loadQuickLinks();
hideLoading(); // From lib.main hideLoading(); // From lib.main
localStorage.setItem("web_ver", document.getElementById('ver_str').textContent)
} }
async function gotoBoard(station){ async function gotoBoard(station){

2
sw.js
View File

@ -1,6 +1,6 @@
/* Service Worker */ /* Service Worker */
const appVersion = "1.0.7" const appVersion = "1.0.8"
const cacheName = `owlboard-${appVersion}`; const cacheName = `owlboard-${appVersion}`;
const cacheIDs = [cacheName]; const cacheIDs = [cacheName];
const cacheFiles = [ const cacheFiles = [