Skip to content

Commit

Permalink
fix(MetaMaskInstaller): replace delete with assignment to undefined f…
Browse files Browse the repository at this point in the history
…or window.ethereum (#1162)
  • Loading branch information
dominikrudzki authored Jan 7, 2025
1 parent 6bac085 commit d647181
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ export async function startDesktopOnboarding() {
);

Ethereum.destroy();
delete window.ethereum;
if (window.ethereum) {
window.ethereum = undefined;
}
const onboardingExtension = new MetaMaskOnboarding();
onboardingExtension.startOnboarding();
}

0 comments on commit d647181

Please sign in to comment.