@@ -23,15 +23,15 @@ const appSchemeURL = (url: string, browser: string): string => {
2323 const { protocol } = parsedUrl ;
2424 const isSecure = [ 'https:' ] . includes ( protocol ) ;
2525
26- if ( browser === 'googlechrome ' ) {
26+ if ( browser === 'Chrome ' ) {
2727 if ( ! isSecure ) {
2828 schemeUrl = url . replace ( protocol , scheme . chrome ) ;
2929 } else {
3030 schemeUrl = url . replace ( protocol , scheme . chromeSecure ) ;
3131 }
32- } else if ( browser === 'firefox ' ) {
32+ } else if ( browser === 'Firefox ' ) {
3333 schemeUrl = `${ scheme . firefox } //open-url?url=${ url } ` ;
34- } else if ( browser === 'brave ' ) {
34+ } else if ( browser === 'Brave ' ) {
3535 schemeUrl = `${ scheme . brave } //open-url?url=${ url } ` ;
3636 }
3737
@@ -52,7 +52,7 @@ const openLink = async (url: string, theme: TSupportedThemes = 'light'): Promise
5252 url = ensureSecureProtocol ( url ) ;
5353 try {
5454 const browser = UserPreferences . getString ( DEFAULT_BROWSER_KEY ) ;
55- if ( browser === 'inApp ' ) {
55+ if ( browser === 'In_app ' ) {
5656 await WebBrowser . openBrowserAsync ( url , {
5757 toolbarColor : themes [ theme ] . surfaceNeutral ,
5858 controlsColor : themes [ theme ] . fontSecondaryInfo ,
0 commit comments