Skip to content

Commit

Permalink
chore: remove the alert of 'SDK Connection has been terminated' (#1095)
Browse files Browse the repository at this point in the history
* feat: remove the alert of 'SDK Connection has been terminated'

* chore: cleaning
  • Loading branch information
omridan159 authored Nov 4, 2024
1 parent 3cdfd83 commit 25b5b36
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ export function setupListeners(
// }) as ClientsDisconnectedHandler);

addListener(EventType.TERMINATE, (() => {
if (state.platformManager?.isBrowser()) {
// TODO use a modal or let user customize messsage instead
// eslint-disable-next-line no-alert
alert(`SDK Connection has been terminated from MetaMask.`);
} else {
console.info(`SDK Connection has been terminated`);
}
state.pendingModal?.unmount?.();
state.installModal?.unmount?.(true);
state.pendingModal = undefined;
Expand Down

0 comments on commit 25b5b36

Please sign in to comment.