File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,15 @@ export class FreshFirefox implements Interceptor {
4848 await certCheckServer . start ( 'https://amiusing.httptoolkit.tech' ) ;
4949
5050 const firefoxProfile = path . join ( this . config . configPath , 'firefox-profile' ) ;
51+ const firefoxPrefsFile = path . join ( firefoxProfile , 'prefs.js' ) ;
5152
52- let existingPrefs : _ . Dictionary < any > = { }
53+ let existingPrefs : _ . Dictionary < any > = { } ;
5354
54- if ( await canAccess ( firefoxProfile ) ) {
55+ if ( await canAccess ( firefoxPrefsFile ) ) {
5556 // If the profile exists, then we've run this before and not deleted the profile,
56- // so it probably worked. If so, reuse the existing preferences to avoids issues
57+ // so it probably worked. If so, reuse the existing preferences to avoid issues
5758 // where on pref setup firefox behaves badly (opening a 2nd window) on OSX.
58- const prefContents = await readFile ( path . join ( firefoxProfile , 'prefs.js' ) , {
59+ const prefContents = await readFile ( firefoxPrefsFile , {
5960 encoding : 'utf8'
6061 } ) ;
6162
You can’t perform that action at this time.
0 commit comments