···2323// Redirect to HTTPS if using the `diffuse.sh` domain (subdomains included)
2424if (location.hostname.endsWith("diffuse.sh") && location.protocol === "http:") {
2525 location.href = location.href.replace("http://", "https://")
2626-}
2626+ failure("Just a moment, redirecting to HTTPS.")
27272828// Secure context & Service worker
2929-if (!self.isSecureContext) {
2929+} else if (!self.isSecureContext) {
3030 failure(`
3131 This app only works on a <a class="underline" target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts#When_is_a_context_considered_secure">secure context</a>, HTTPS & localhost, and modern browsers.
3232 `)