Skip to content

Commit

Permalink
fix: Checks JS window object for null before focusing (#2798)
Browse files Browse the repository at this point in the history
  • Loading branch information
nithindavid committed Aug 12, 2021
1 parent 3d80768 commit d492a65
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -36,7 +36,7 @@ export default {
methods: {
openLink() {
const win = window.open(this.url, '_blank', 'noopener');
win.focus();
if (win) win.focus();
},
},
};
Expand Down

0 comments on commit d492a65

Please sign in to comment.