Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
- Update pageName handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-M-Ensemble committed Mar 4, 2024
1 parent f017687 commit 6ac9fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/marketing/marketing.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default async function decorate(block) {
pageName = 'homepage';
} else if (pageName.startsWith("news")) {

Check failure on line 48 in blocks/marketing/marketing.js

View workflow job for this annotation

GitHub Actions / build

Strings must use singlequote
pageName = 'news';
} else {
} if (pageName.includes('/')) {
pageName = pageName.substring(pageName.lastIndexOf('/') + 1);
}
window.tude.cmd.push(() => {
Expand Down

0 comments on commit 6ac9fdd

Please sign in to comment.