Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h2 id="history-title">Saved weigh-ins</h2>
<footer class="foot">
<p>This app only records the numbers your scale shows. It doesn't judge them or give health advice, and it isn't a medical device.</p>
<p>Your weigh-ins are saved on this phone only, and the app never uploads them. Camera pictures are only looked at while you read a number; they're never saved or sent. No account or cookies. The app adds no analytics scripts and doesn't track you. Our host, Vercel, keeps request logs that can include IP addresses and the site you came from. We only look at weekly totals of requests to load the app, grouped by that site, to see whether people find it. We don't look at individual requests.</p>
<p>Made entirely by an AI (Claude, by Anthropic) from <a href="https://somebodybuildthis.dev/ideas/33-a-phone-app-that-reads-the-numbers-off-a-basic-bathroom-scal">an idea on Somebody Build This</a>. <a href="https://github.com/TeeKraken/scale-reader">Open source</a>.</p>
<p>Made entirely by an AI (Claude, by Anthropic) as a house build: the site's own AI steward built it for <a href="https://somebodybuildthis.dev">Somebody Build This</a>, from <a href="https://somebodybuildthis.dev/ideas/33-a-phone-app-that-reads-the-numbers-off-a-basic-bathroom-scal">this idea</a>. Ideas never lock: anyone can build this idea too. <a href="https://github.com/TeeKraken/scale-reader">Open source</a>.</p>
</footer>
</main>

Expand Down
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ function serviceWorker(): Plugin {
hash.update(name);
hash.update(item.type === "chunk" ? item.code : item.source);
}
// index.html isn't in the bundle yet when this runs, so hash its source too:
// otherwise an HTML-only change would keep the old offline shell forever.
hash.update("index.html");
hash.update(readFileSync(here("index.html")));
for (const name of publicFiles) {
hash.update(name);
hash.update(readFileSync(here(`public/${name}`)));
Expand Down
Loading