Enable Discovery debug logging for production troubleshooting
- Add DISCOVERY_LOG_LEVEL=debug - Add DISCOVERY_SHOW_PROGRESS=true - Temporary changes for debugging InitializerProcessor fixes on production
This commit is contained in:
@@ -13,6 +13,11 @@ export function init() {
|
||||
const footer = document.querySelector('footer');
|
||||
const headerLink = document.querySelector('header a');
|
||||
|
||||
// Check if required elements exist
|
||||
if (!button || !aside || !backdrop) {
|
||||
console.info('[Sidebar] Required elements not found, skipping sidebar initialization');
|
||||
return;
|
||||
}
|
||||
|
||||
useEvent(button, 'click', (e) => {
|
||||
aside.classList.toggle('show');
|
||||
@@ -23,13 +28,13 @@ export function init() {
|
||||
if (isVisible) {
|
||||
backdrop.classList.add('visible');
|
||||
|
||||
footer.setAttribute('inert', 'true');
|
||||
headerLink.setAttribute('inert', 'true');
|
||||
if (footer) footer.setAttribute('inert', 'true');
|
||||
if (headerLink) headerLink.setAttribute('inert', 'true');
|
||||
} else {
|
||||
backdrop.classList.remove('visible');
|
||||
|
||||
footer.removeAttribute('inert');
|
||||
headerLink.removeAttribute('inert');
|
||||
if (footer) footer.removeAttribute('inert');
|
||||
if (headerLink) headerLink.removeAttribute('inert');
|
||||
}
|
||||
})
|
||||
|
||||
@@ -48,8 +53,8 @@ export function init() {
|
||||
aside.classList.remove('show');
|
||||
backdrop.classList.remove('visible');
|
||||
|
||||
footer.removeAttribute('inert');
|
||||
headerLink.removeAttribute('inert');
|
||||
if (footer) footer.removeAttribute('inert');
|
||||
if (headerLink) headerLink.removeAttribute('inert');
|
||||
}
|
||||
|
||||
useEvent(backdrop, 'click' , clickHandler)
|
||||
|
||||
Reference in New Issue
Block a user