-
Notifications
You must be signed in to change notification settings - Fork 239
feat: Electron enable context isolation #9358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
ba80cf9
91e1e90
eee12bd
4d3635f
3f97a5e
b817bae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,7 +64,7 @@ const EditAccountMenu = ({ | |
| <ContextMenuItem | ||
| onClick={() => { | ||
| connected.switchWebview(accountIndex); | ||
| window.sendLogoutAccount(accountId); | ||
| window.electronAPI.sendLogoutAccount(accountId); | ||
| }} | ||
| > | ||
| {getText('wrapperLogOut')} | ||
|
|
@@ -73,9 +73,16 @@ const EditAccountMenu = ({ | |
|
|
||
| <ContextMenuItem | ||
| onClick={() => { | ||
| window.sendDeleteAccount(accountId, sessionID).then(() => { | ||
| connected.abortAccountCreation(accountId); | ||
| }); | ||
| window.electronAPI | ||
| .sendDeleteAccount(accountId, sessionID) | ||
| .then(() => { | ||
| connected.abortAccountCreation(accountId); | ||
| }) | ||
| .catch(error => { | ||
| console.error('Failed to delete account:', error); | ||
| // Still abort account creation even if deletion fails | ||
| connected.abortAccountCreation(accountId); | ||
| }); | ||
|
Comment on lines
+81
to
+85
|
||
| }} | ||
| > | ||
| {getText('wrapperRemoveAccount')} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error handling logs to console.error but provides no user feedback. When account deletion fails, the user should be notified through the UI (e.g., a toast or dialog) rather than silently failing with only a console log. This is important for user experience as they may not know the operation failed.