fix: round FV/cr value in detail view and bump SW cache version
This commit is contained in:
+1
-1
@@ -285,7 +285,7 @@ function renderDetail() {
|
|||||||
<div class="row"><span>Estimated Opponent Bid</span><span class="val" style="color:var(--red);">${p.opponent_bid} cr</span></div>
|
<div class="row"><span>Estimated Opponent Bid</span><span class="val" style="color:var(--red);">${p.opponent_bid} cr</span></div>
|
||||||
<div class="row"><span>Max Rational Bid</span><span class="val">${p.max_bid} cr</span></div>
|
<div class="row"><span>Max Rational Bid</span><span class="val">${p.max_bid} cr</span></div>
|
||||||
<div class="row" style="margin-top:4px;font-size:11px;color:var(--muted);">
|
<div class="row" style="margin-top:4px;font-size:11px;color:var(--muted);">
|
||||||
<span>Value: ${p.p50 / Math.max(p.recommended_bid || 1, 1).toFixed(3)} FV/cr</span>
|
<span>Value: ${(p.p50 / Math.max(p.recommended_bid || 1, 1)).toFixed(3)} FV/cr</span>
|
||||||
<span>Budget left: ${remaining} cr</span>
|
<span>Budget left: ${remaining} cr</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
const CACHE = "fantabeto-v1";
|
const CACHE = "fantabeto-v2";
|
||||||
const ASSETS = ["/", "/index.html", "/app.js", "/styles.css", "/manifest.json"];
|
const ASSETS = ["/", "/index.html", "/app.js", "/styles.css", "/manifest.json"];
|
||||||
|
|
||||||
self.addEventListener("install", (e) => {
|
self.addEventListener("install", (e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user