Skip to content

Commit

Permalink
[change] Linking.openURL() opens in new tab.
Browse files Browse the repository at this point in the history
  • Loading branch information
necolas committed Feb 5, 2021
1 parent 469669c commit 79b5ffe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/exports/Linking/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ class Linking {

const open = url => {
if (canUseDOM) {
window.location = new URL(url, window.location).toString();
const urlToOpen = new URL(url, window.location).toString();
window.open(urlToOpen, '_blank', 'noopener');
}
};

Expand Down

0 comments on commit 79b5ffe

Please sign in to comment.