Fix mobile detection

This commit is contained in:
yflory
2018-03-19 16:27:33 +01:00
parent 4f2a91b82d
commit 91b3ef45f3
2 changed files with 6 additions and 4 deletions

View File

@@ -400,7 +400,9 @@ define([
});
show();
Common.getAttribute(['toolbar', 'userlist-drawer'], function (err, val) {
if (val === false || $(window).width() < 800) { return void hide(); }
if (val === false || ($(window).height() < 800 && $(window).width() < 800)) {
return void hide();
}
show();
});