fix #27: disable side menu on public pages - broken in 1.8.3

This commit is contained in:
Simon Vieille
2020-08-25 12:18:39 +02:00
parent acdd299573
commit 4370738625
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -53,7 +53,11 @@ export default {
const links = document.querySelectorAll('#appmenu a')
const menu = document.querySelector('#appmenu')
const menuIsHidden = window.getComputedStyle(menu, null).getPropertyValue('display') === 'none';
if (menu) {
const menuIsHidden = window.getComputedStyle(menu, null).getPropertyValue('display') === 'none';
} else {
const menuIsHidden = false;
}
for (let element of links) {
let href = element.getAttribute('href')