Skip to content

Commit 132260d

Browse files
committed
Hide cert install instructions until we know they're needed
This makes the UX a lot smoother and avoids jumping between states
1 parent f6e13f9 commit 132260d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cert-check-server.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function ensureCertificateIsInstalled() {
3232
// Start trying to prompt the user to install the cert
3333
if (!installingCert) {
3434
installingCert = true;
35+
document.body.className = 'show-content';
3536
const iframe = document.createElement('iframe');
3637
iframe.src = downloadUrl;
3738
document.body.appendChild(iframe);
@@ -71,6 +72,10 @@ export class CertCheckServer {
7172
font-family: Lato, Arial;
7273
}
7374
75+
body:not(.show-content) > * {
76+
display: none;
77+
}
78+
7479
h1 {
7580
font-size: 36pt;
7681
}

0 commit comments

Comments
 (0)