File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -340,7 +340,7 @@ ipcMain.on('set_cookie', event => {
340
340
// this if statement is necessary or the setInterval on main app will constantly run and will emit this event.reply, causing a memory leak
341
341
// checking for a cookie inside array will only emit reply when a cookie exists
342
342
if ( cookie [ 0 ] ) {
343
- console . log ( cookie ) ;
343
+ // console.log(cookie);
344
344
event . reply ( 'give_cookie' , cookie ) ;
345
345
}
346
346
} )
@@ -353,9 +353,9 @@ ipcMain.on('set_cookie', event => {
353
353
ipcMain . on ( 'delete_cookie' , event => {
354
354
session . defaultSession . cookies
355
355
. remove ( serverUrl , 'ssid' )
356
- . then ( removed => {
357
- console . log ( 'Cookies deleted' , removed ) ;
358
- } )
356
+ // .then(removed => {
357
+ // console.log('Cookies deleted', removed);
358
+ // })
359
359
. catch ( err => console . log ( 'Error deleting cookie:' , err ) ) ;
360
360
} ) ;
361
361
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ function ProjectsDialog(props: ProjectDialogProps) {
43
43
) [ 0 ] ;
44
44
console . log ( 'selectedProject is' , selectedProject ) ;
45
45
deleteProject ( selectedProject ) ;
46
- localforage . removeItem ( window . localStorage . getItem ( 'ssid' ) ) ;
46
+ localforage . clear ( ) ;
47
47
dispatch ( { type : 'RESET STATE' , payload : { } } ) ;
48
48
onClose ( ) ;
49
49
} ;
You can’t perform that action at this time.
0 commit comments