Skip to content

Commit

Permalink
Merge pull request #8788 from Expensify/cmartins-fixExternalLinking
Browse files Browse the repository at this point in the history
Make sure external links open in a new tab in Safari
  • Loading branch information
PauloGasparSv authored Apr 28, 2022
2 parents 7726252 + 3c0fe92 commit f5bb9c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/actions/Link.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Onyx from 'react-native-onyx';
import lodashGet from 'lodash/get';
import {Linking} from 'react-native';
import ONYXKEYS from '../../ONYXKEYS';
import Growl from '../Growl';
import * as Localize from '../Localize';
Expand Down Expand Up @@ -54,7 +53,7 @@ function openExternalLink(url) {
return;
}

Linking.openURL(url);
asyncOpenURL(Promise.resolve(), url);
}

export {
Expand Down

0 comments on commit f5bb9c8

Please sign in to comment.