Skip to content

Commit 2ff188f

Browse files
Code formatting change of version selector (#10480) (#10484)
1 parent e0eda4d commit 2ff188f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assets/js/_version-selector.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ class VersionSelector extends HTMLElement {
158158
frag.querySelector('#selected').textContent = `${PREFIX}${this.getAttribute('selected')}`;
159159

160160
const pathName = location.pathname.replace(/^\/(latest|\d+\.\d+)(\/)?/, '');
161+
161162
const versionsDOMNodes = DOC_VERSIONS.map((v, idx) => v === DOC_VERSION_LATEST
162163
? `<a href="/latest/${pathName}" class="latest">${PREFIX}${v}</a>`
163164
: `<a href="/${v}/${pathName}">${PREFIX}${v}</a>`,

0 commit comments

Comments
 (0)