Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Rings authored and Justin Rings committed Sep 11, 2024
1 parent 9c09a4e commit 04f0ab4
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions express/scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -459,27 +459,6 @@ export function buildAutoBlocks() {
}
}

// function fragmentBlocksToLinksOld(area) {
// area.querySelectorAll('div.fragment').forEach((blk) => {
// let fragLink = blk.querySelector('a');
// if (!fragLink) {
// try {
// const firstDiv = blk.querySelector('div');
// const textContent = firstDiv?.textContent?.trim();
// const fragURL = new URL(textContent, window.location.origin);
// firstDiv.textContent = '';
// fragLink = createTag('a', { href: fragURL.href });
// } catch (error) {
// blk.remove();
// window.lana.log(`Failed creating a url from an old fragment block: ${error.message}`);
// }
// }
// if (fragLink) {
// blk.parentElement.replaceChild(fragLink, blk);
// }
// });
// }

function fragmentBlocksToLinks(area) {
area.querySelectorAll('div.fragment').forEach((blk) => {
const fragLink = blk.querySelector('a');
Expand Down

0 comments on commit 04f0ab4

Please sign in to comment.