Skip to content

Commit

Permalink
Remove unsupported optional chaining operator (fixes #54, #56, #57)
Browse files Browse the repository at this point in the history
  • Loading branch information
benct committed Mar 8, 2020
1 parent e477e29 commit be8b9c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions multiple-entity-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,10 @@
}
if (config.action === 'url') {
return () => {
if (!confirmation || confirm(confirmation))
window.open(config.url_path, '_blank')?.focus();
if (!confirmation || confirm(confirmation)) {
const win = window.open(config.url_path, '_blank');
if (win) win.focus();
}
}
}
}
Expand Down

0 comments on commit be8b9c1

Please sign in to comment.