Skip to content

Commit

Permalink
Replace ?. as it's too recent for some browsers...
Browse files Browse the repository at this point in the history
  • Loading branch information
H-M-H committed Mar 1, 2021
1 parent ac69e14 commit 6aac485
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ts/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ class Settings {
}

onCapturableList(window_names: string[]) {
let current_selection = this.capturable_select.selectedOptions[0]?.textContent;
let current_selection = undefined;
if (this.capturable_select.selectedOptions[0])
current_selection = this.capturable_select.selectedOptions[0].textContent;
let new_index;
this.capturable_select.innerText = "";
window_names.forEach((name, i) => {
Expand Down

0 comments on commit 6aac485

Please sign in to comment.