Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 4d7e7a4

Browse filesBrowse files
committed
fix(banners): fixed banner fetching from nodejs.org
1 parent 2ef0302 commit 4d7e7a4
Copy full SHA for 4d7e7a4

2 files changed

+2-2Lines changed: 2 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apiUrls.js‎

Copy file name to clipboardExpand all lines: apiUrls.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
'https://raw.githubusercontent.com/nodejs/Release/main/schedule.json',
77
nodeReleaseData: 'https://nodejs.org/dist/index.json',
88
nodeBannersData:
9-
'https://raw.githubusercontent.com/nodejs/nodejs.org/main/locale/en/site.json',
9+
'https://raw.githubusercontent.com/nodejs/nodejs.org/main/site.json',
1010
jsonLink: (fileName, version) =>
1111
`https://nodejs.org/docs/latest-${version}.x/api/${fileName}.json`,
1212
};
Collapse file

‎util-node/getBannersData.js‎

Copy file name to clipboardExpand all lines: util-node/getBannersData.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function getBannersData() {
77
// And retrieves the `banners` data to display on the website
88
return fetch(nodeBannersData)
99
.then(response => response.json())
10-
.then(({ banners }) => banners);
10+
.then(({ websiteBanners }) => websiteBanners);
1111
}
1212

1313
module.exports = getBannersData;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.