Skip to content

Commit d6db5fe

Browse files
committed
Keep master for backwards compatibility in docs version string
1 parent 33f306e commit d6db5fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@
114114
const searchTerm = null !== searchParam ? searchParam : '';
115115
const versionParam = queryParams.get('version');
116116
const parseVersionParam = (version) => {
117-
if (version === 'main') return 'main';
117+
// master is kept for backwards compatibility with old branch name
118+
if (version === 'master' || version === 'main') return 'main';
118119
if (version.startsWith('v')) return version;
119120
return `v${version}`;
120121
};

0 commit comments

Comments
 (0)