Skip to content

Commit 33afc67

Browse files
committed
delete projects bug fixing
1 parent 400e8da commit 33afc67

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/electron/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ ipcMain.on('set_cookie', event => {
340340
// this if statement is necessary or the setInterval on main app will constantly run and will emit this event.reply, causing a memory leak
341341
// checking for a cookie inside array will only emit reply when a cookie exists
342342
if (cookie[0]) {
343-
console.log(cookie);
343+
//console.log(cookie);
344344
event.reply('give_cookie', cookie);
345345
}
346346
})
@@ -353,9 +353,9 @@ ipcMain.on('set_cookie', event => {
353353
ipcMain.on('delete_cookie', event => {
354354
session.defaultSession.cookies
355355
.remove(serverUrl, 'ssid')
356-
.then(removed => {
357-
console.log('Cookies deleted', removed);
358-
})
356+
// .then(removed => {
357+
// console.log('Cookies deleted', removed);
358+
// })
359359
.catch(err => console.log('Error deleting cookie:', err));
360360
});
361361

app/src/components/right/DeleteProjects.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function ProjectsDialog(props: ProjectDialogProps) {
4343
)[0];
4444
console.log('selectedProject is', selectedProject);
4545
deleteProject(selectedProject);
46-
localforage.removeItem(window.localStorage.getItem('ssid'));
46+
localforage.clear();
4747
dispatch({ type: 'RESET STATE', payload: {} });
4848
onClose();
4949
};

0 commit comments

Comments
 (0)