Skip to content

Commit

Permalink
Adding a version file
Browse files Browse the repository at this point in the history
  • Loading branch information
runxc1 committed Apr 1, 2024
1 parent be4a710 commit a33b838
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Pages/Home.razor
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@

</div>
<div style="float: right; padding: 10px; 5px">
Version: 1.0.1
Version: @version
</div>

<style>
Expand All @@ -163,6 +163,7 @@
private int currentCount = 6;
string timeFormat = @"mm\:ss\.ff";
bool editMode = false;
decimal version = 1.01M;
TimerSettings settings = new TimerSettings();
List<PausableTimer> timers = new List<PausableTimer>()
{
Expand Down
2 changes: 2 additions & 0 deletions wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
</div>
<script src="_framework/blazor.webassembly.js"></script>
<script>navigator.serviceWorker.register('service-worker.js');</script>
<script>navigator.serviceWorker.register('version.js');</script>

<script src="_framework/aspnetcore-browser-refresh.js"></script>

</body>
Expand Down
8 changes: 4 additions & 4 deletions wwwroot/manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "MyBlazorPwa",
"short_name": "MyBlazorPwa",
"name": "Multi Athlete Track Timer",
"short_name": "MATT",
"id": "./",
"start_url": "./",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#03173d",
"background_color": "#000000",
"theme_color": "#60c9fc",
"prefer_related_applications": false,
"icons": [
{
Expand Down
1 change: 1 addition & 0 deletions wwwroot/version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const CACHE_VERSION = 1.01;

0 comments on commit a33b838

Please sign in to comment.