Skip to content

Commit a27e0a7

Browse files
committed
Remove unnecessary class check
This was leftover from some experimentation with additional CSS classes to indiciate dictionary loading or activation
1 parent 98e7ca1 commit a27e0a7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lute/static/js/dict-tabs.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ class LookupButton {
3535

3636
this.frame.addEventListener("load", (e) => {
3737
if (this.frame.src && this.frame.src !== "about:blank" && this.is_active) {
38-
if (!this.frame.classList.contains("dict-activate")) {
39-
this.frame.classList.add("dict-active");
40-
readPaneLeft.focus();
41-
}
38+
this.frame.classList.add("dict-active");
39+
readPaneLeft.focus();
4240
}
4341
});
4442

0 commit comments

Comments
 (0)