Merge pull request #2078 from thelounge/xpaw/fix-master-after-no-var

Fix active class not being removed when switching channels
This commit is contained in:
Jérémie Astori 2018-02-19 14:27:29 -05:00 committed by GitHub
commit 95abf830cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -372,7 +372,9 @@ $(function() {
sidebarSlide.toggle(false); sidebarSlide.toggle(false);
} }
const lastActive = $("#windows > .active") const lastActive = $("#windows > .active");
lastActive
.removeClass("active") .removeClass("active")
.find(".chat") .find(".chat")
.unsticky(); .unsticky();