check that aside actually exists before querying the html length
This commit is contained in:
@@ -25,7 +25,7 @@ $('#expand-aside').click(function() {
|
||||
$('main').toggleClass('region_1-on');
|
||||
});
|
||||
|
||||
if ($('aside').html().length == 0) {
|
||||
if($('aside').length && $('aside').html().length == 0) {
|
||||
$('#expand-aside').hide();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user