File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ function getPortableDataPath() {
2424 return path . join ( path . dirname ( getApplicationPath ( ) ) , product . portable ) ;
2525}
2626
27- if ( product . portable ) {
27+ if ( product . portable && product . portableTemp ) {
2828 const portablePath = getPortableDataPath ( ) ;
2929 try { fs . mkdirSync ( portablePath ) ; } catch ( err ) { if ( err . code !== 'EEXIST' ) { throw err ; } }
3030
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function getPortableDataPath() {
3131 return path . join ( path . dirname ( getApplicationPath ( ) ) , product . portable ) ;
3232}
3333
34- if ( product . portable ) {
34+ if ( product . portable && product . portableTemp ) {
3535 const portablePath = getPortableDataPath ( ) ;
3636 try { fs . mkdirSync ( portablePath ) ; } catch ( err ) { if ( err . code !== 'EEXIST' ) { throw err ; } }
3737
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ export interface IProductConfiguration {
7474 } ;
7575 logUploaderUrl : string ;
7676 portable ?: string ;
77+ portableTemp ?: string ;
7778}
7879
7980export interface ISurveyData {
You can’t perform that action at this time.
0 commit comments