Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hernandoagf committed Jan 10, 2024
1 parent 60a4fa7 commit de0dd2f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/web3/helpers/checkInjectedProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import { WindowPostMessageStream } from '@metamask/post-message-stream';
import { initializeProvider } from '@metamask/providers';

export function checkInjectedProvider() {
if (window.ethereum) {
return;
} else {
if (!window.ethereum) {
const browser = detectBrowser();
if (browser && browser.name === 'firefox') {
// Due to https://github.com/MetaMask/metamask-extension/issues/3133
Expand Down

0 comments on commit de0dd2f

Please sign in to comment.