Use const variables when applicable
This commit is contained in:
@ -30,7 +30,7 @@ export default class SideBar {
|
||||
}
|
||||
|
||||
toggle() {
|
||||
let visible = this.element.style.display !== "none"
|
||||
const visible = this.element.style.display !== "none"
|
||||
|
||||
if(visible) {
|
||||
this.element.style.display = "none"
|
||||
|
Reference in New Issue
Block a user