mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
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: {
|
||||
openLink() {
|
||||
const win = window.open(this.url, '_blank', 'noopener');
|
||||
win.focus();
|
||||
if (win) win.focus();
|
||||
},
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user