mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 09:46:06 +01:00
Mobile: Do not error out on login page where sidebar isn't available
This commit is contained in:
@@ -64,7 +64,7 @@ $(document).ready(function(){
|
||||
//actions here please;
|
||||
console.log("Other setup");
|
||||
//make sure menu is visible
|
||||
if(sidebar.style.display == 'none') {
|
||||
if(sidebar && sidebar.style.display == 'none') {
|
||||
sidebar.style.display = 'block';
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user