11import { getLocal , Mockttp } from 'mockttp' ;
22
3- import { HttpsPathOptions } from 'mockttp/dist/util/tls' ;
43import { readFile } from './util' ;
4+ import { HtkConfig } from './config' ;
55
66export class CertCheckServer {
77
8- constructor ( private config : { https : HttpsPathOptions } ) { }
8+ constructor ( private config : HtkConfig ) { }
99
1010 private server : Mockttp | undefined ;
1111
@@ -24,7 +24,7 @@ export class CertCheckServer {
2424 } ) ,
2525 this . server . get ( '/check-cert' ) . thenReply ( 200 , `
2626 <html>
27- <title>HTTP Toolkit Certificate Setup</title>
27+ <title>${ this . config . appName } Certificate Setup</title>
2828 <meta charset="UTF-8" />
2929 <link href="http://fonts.googleapis.com/css?family=Lato" rel="stylesheet" />
3030 <style>
@@ -112,23 +112,23 @@ export class CertCheckServer {
112112 </svg>
113113
114114 <p>
115- To intercept HTTPS traffic, you need to trust the HTTP Toolkit certificate.
115+ To intercept HTTPS traffic, you need to trust the ${ this . config . appName } certificate.
116116 <br/>
117117 This will only apply to this standalone Firefox profile, not your normal browser.
118118 </p>
119119 <p><strong>
120120 Select 'Trust this CA to identify web sites' and press 'OK' to continue.
121121 </strong></p>
122122 <p>
123- Made a mistake? Quit Firefox and start it again from HTTP Toolkit to retry.
123+ Made a mistake? Quit Firefox and start again to retry.
124124 </p>
125125 </div>
126126 </body>
127127 </html>
128128 ` ) ,
129129 this . server . get ( '/spinner' ) . thenReply ( 200 , `
130130 <html>
131- <title>HTTP Toolkit Certificate Setup</title>
131+ <title>${ this . config . appName } Certificate Setup</title>
132132 <meta charset="UTF-8" />
133133 <style>
134134 body {
0 commit comments