Skip to content

Commit

Permalink
undefined != null
Browse files Browse the repository at this point in the history
  • Loading branch information
walterbender committed Dec 9, 2023
1 parent c731dfe commit 149ec9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ class Toolbar {
const trans = strings_[i];
const elem = docById(obj[0]);
if (strings[i].length === 3) {
if (elem !== undefined) {
if (elem !== undefined && elem !== null) {
elem.innerHTML = obj[1];
}
} else {
Expand Down

0 comments on commit 149ec9f

Please sign in to comment.