diff --git a/src/wallets/wallet-handler.js b/src/wallets/wallet-handler.js index 74110cdb..3629b80f 100644 --- a/src/wallets/wallet-handler.js +++ b/src/wallets/wallet-handler.js @@ -1,4 +1,9 @@ -import {getPropertyPath, isChrome, isFirefox} from '@starkware-industries/commons-js-utils'; +import { + getPropertyPath, + isChrome, + isFirefox, + getBrowserName +} from '@starkware-industries/commons-js-utils'; import translations from '../config/translations'; @@ -8,7 +13,9 @@ export class WalletHandler { } isBrowserSupported() { - const isBrowserSupported = isChrome() || isFirefox(); + const isEdge = () => getBrowserName() === 'Edge'; + const isBrowserSupported = isChrome() || isFirefox() || isEdge(); + if (!isBrowserSupported) { throw new Error(getPropertyPath(translations, 'modals.login.unsupportedBrowserTxt')); }