Skip to content

Commit

Permalink
fix branch urls not working
Browse files Browse the repository at this point in the history
  • Loading branch information
vhargrave committed Sep 24, 2024
1 parent d80e0e3 commit 66a7d82
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions express/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ function decorateHeroLCP(loadStyle, config, createTag, getMetadata) {
const budouxExcludeSelector = createTag('meta', { property: 'jpwordwrap:budoux-exclude-selector', content: 'p' });
document.head.append(budouxExcludeSelector);
}

if (getMetadata('sheet-powered') === 'Y') {
const { default: replaceContent } = await import('./utils/content-replace.js');
await replaceContent(document.querySelector('main'));
}

// Decorate the page with site specific needs.
decorateArea();

Expand Down Expand Up @@ -233,8 +239,6 @@ function decorateHeroLCP(loadStyle, config, createTag, getMetadata) {
if (urlParams.get('martech') !== 'off' && getMetadata('martech') !== 'off') {
import('./instrument.js').then((mod) => { mod.default(); });
}
const { default: replaceContent } = await import('./utils/content-replace.js');
await replaceContent(document.querySelector('main'));

await loadArea();
import('./express-delayed.js').then((mod) => {
Expand Down

0 comments on commit 66a7d82

Please sign in to comment.