Skip to content

Commit

Permalink
Removed buildHeroBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
rgravitvl committed Dec 1, 2023
1 parent e13861f commit 1bab2fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export function setCookie(cname, cvalue, expTime = 30 * 1000 * 60 * 60 * 24, pat
* Builds hero block and prepends to main in a new section.
* @param {Element} main The container element
*/
// eslint-disable-next-line no-unused-vars
function buildHeroBlock(main) {
const h1 = main.querySelector('h1');
const picture = main.querySelector('picture');
Expand Down Expand Up @@ -238,7 +239,6 @@ async function loadFonts() {
*/
function buildAutoBlocks(main) {
try {
buildHeroBlock(main);
buildVideo(main);
} catch (error) {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 1bab2fe

Please sign in to comment.