mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-05-19 07:59:39 +00:00
Remove aggresive webview cleanup() to keep user login data
This commit is contained in:
parent
4249ca0777
commit
c09e62c636
1 changed files with 2 additions and 4 deletions
|
|
@ -269,10 +269,8 @@ export class WebViewManager {
|
|||
|
||||
if (!webViewInfo.view.webContents.isDestroyed()) {
|
||||
webViewInfo.view.webContents.removeAllListeners()
|
||||
webViewInfo.view.webContents.session.clearCache()
|
||||
webViewInfo.view.webContents.session.clearStorageData({
|
||||
storages: ['cookies', 'localstorage', 'websql', 'indexdb', 'serviceworkers', 'cachestorage']
|
||||
})
|
||||
// REMOVED: clearCache() and clearStorageData() to prevent clearing main window's storage
|
||||
// since all webviews share session.defaultSession with the main window
|
||||
}
|
||||
|
||||
// remove webview from parent container
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue