fix: Checks JS window object for null before focusing (#2798)
This commit is contained in:
parent
3d807684bb
commit
d492a65c24
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ export default {
|
|||
methods: {
|
||||
openLink() {
|
||||
const win = window.open(this.url, '_blank', 'noopener');
|
||||
win.focus();
|
||||
if (win) win.focus();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue