Skip to content

Commit

Permalink
chore: fix sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
khanti42 committed Nov 21, 2024
1 parent b83dc19 commit 071083c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import { ConnectButton } from '../ConnectModal/ConnectModal.style';
export const MinVersionModalView = () => {
const { metaMaskUpgradeRequired } = useHasMetamask();
const handleUpdateMetaMask = () => {
window.open('https://metamask.io')?.focus();
const newWindow = window.open('https://metamask.io', '_blank', 'noopener,noreferrer');
if (newWindow) newWindow.focus();
};
return (
<Wrapper>
Expand Down

0 comments on commit 071083c

Please sign in to comment.