From b59ef914da404625caae3deca97cb030dc9ac1b1 Mon Sep 17 00:00:00 2001
From: Mark Wissink
Date: Wed, 9 Sep 2026 10:24:27 -0400
Subject: [PATCH] Remove non-TLS support
---
assets/boot.html | 79 ++++++++++------------------------
assets/js/app.js | 37 +++++-----------
assets/js/render.js | 35 +++++++--------
assets/sw.js | 38 ++++++----------
assets/templates/bookmark.njk | 23 +++-------
assets/templates/reference.njk | 5 +--
assets/templates/version.njk | 7 ---
server.py | 30 +++++++------
utils/compile_bible.py | 5 +--
9 files changed, 88 insertions(+), 171 deletions(-)
diff --git a/assets/boot.html b/assets/boot.html
index e736026..6d680ff 100644
--- a/assets/boot.html
+++ b/assets/boot.html
@@ -19,13 +19,22 @@
The pages on disk are fragments and the shell is a template, and it is the
worker that puts them together. So this page has one job: register the
worker and reload once it is running, which lands on the real app at the
- address that was asked for. It is only ever seen once per device. -->
+ address that was asked for. It is only ever seen once per device.
+
+ There is no fallback for a device that cannot install one. There used to
+ be -- this page loaded the renderer itself and composed the page in the
+ browser -- and it existed for one case: the app served over plain http://
+ from a LAN address, which is not a secure context, so no worker can
+ register. This app is served over TLS, where that case cannot arise, and
+ the fallback was a second way of building every page that nothing
+ exercised. What is left when registration fails is a sentence saying so,
+ because there is nothing honest to show instead. -->