Skip to content

Commit

Permalink
Fix: Lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bandana147 committed Sep 24, 2024
1 parent 3adda9b commit 1551217
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/blocks/global-navigation/global-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ class Gnav {
}
// Dispatching an event when gnav loads and is visible
window.dispatchEvent(new CustomEvent('feds:nav.ready'));

document.addEventListener('click', closeOnClickOutside);
isDesktop.addEventListener('change', closeAllDropdowns);
}, 'Error in global navigation init', 'errorType=error,module=gnav');
Expand Down
2 changes: 1 addition & 1 deletion libs/blocks/global-navigation/utilities/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ export async function fetchAndProcessPlainHtml({ url, shouldDecorateLinks = true
e: `${res.statusText} url: ${res.url}`,
tags: 'errorType=info,module=utilities',
});
return;
return null;
}
const text = await res.text();
const { body } = new DOMParser().parseFromString(text, 'text/html');
Expand Down
2 changes: 1 addition & 1 deletion libs/navigation/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default async function loadBlock(configs, customLib) {
}
});
window.addEventListener('feds:nav.ready', () => onReady && onReady());
window.addEventListener('feds:nav.error', ({ detail }) => onError && onError(detail?.message))
window.addEventListener('feds:nav.error', ({ detail }) => onError && onError(detail?.message));
}

window.loadNavigation = loadBlock;

0 comments on commit 1551217

Please sign in to comment.