Merge pull request #1892 from thelounge/astorije/fix-slideout

Fix slideout not closing on mobile when hitting a footer icon
This commit is contained in:
Jérémie Astori 2017-12-24 02:59:36 -05:00 committed by GitHub
commit 7d49730bad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,7 +344,7 @@ $(function() {
// This is a rather gross hack to account for sources that are in the
// sidebar specifically. Needs to be done better when window management gets
// refactored.
const inSidebar = self.parents("#sidebar").length > 0;
const inSidebar = self.parents("#sidebar, #footer").length > 0;
if (inSidebar) {
chat.data(