fix: Checks JS window object for null before focusing (#2798)
This commit is contained in:
committed by
GitHub
parent
3d807684bb
commit
d492a65c24
@@ -36,7 +36,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
openLink() {
|
openLink() {
|
||||||
const win = window.open(this.url, '_blank', 'noopener');
|
const win = window.open(this.url, '_blank', 'noopener');
|
||||||
win.focus();
|
if (win) win.focus();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user