Skip to content

Commit

Permalink
Remove unnecessary class check
Browse files Browse the repository at this point in the history
This was leftover from some experimentation with additional CSS classes to indiciate
dictionary loading or activation
  • Loading branch information
cblanken committed Aug 10, 2024
1 parent 98e7ca1 commit a27e0a7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lute/static/js/dict-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ class LookupButton {

this.frame.addEventListener("load", (e) => {
if (this.frame.src && this.frame.src !== "about:blank" && this.is_active) {
if (!this.frame.classList.contains("dict-activate")) {
this.frame.classList.add("dict-active");
readPaneLeft.focus();
}
this.frame.classList.add("dict-active");
readPaneLeft.focus();
}
});

Expand Down

0 comments on commit a27e0a7

Please sign in to comment.