We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 285d61d commit 85dd7faCopy full SHA for 85dd7fa
docs/src/.vitepress/theme/VersionPicker.vue
@@ -31,7 +31,7 @@ const getBaseRepository = () => {
31
if (typeof window === 'undefined') return ''; // Handle server-side rendering (SSR)
32
const { origin, pathname } = window.location;
33
// Check if it's a GitHub Pages (or similar) setup
34
- if (origin.includes('qutip.org')) || (origin.includes('github.io')) {
+ if ((origin.includes('qutip.org')) || (origin.includes('github.io'))) {
35
// Extract the first part of the path as the repository name
36
const pathParts = pathname.split('/').filter(Boolean);
37
const baseRepo = pathParts.length > 0 ? `/${pathParts[0]}/` : '/';
0 commit comments