Skip to content

Commit a080260

Browse files
committed
Update script.js
1 parent 7a751eb commit a080260

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

assets/js/script.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,15 @@ function parseURL() {
144144
}
145145

146146
// Skip URL parsing for specific pages we want to preserve
147-
const specialPages = ['/popular-repos/', '/popular-repos/index.html'];
147+
const specialPages = ['/popular-repos/', '/popular-repos', '/popular-repos.html'];
148148
if (specialPages.includes(window.location.pathname)) {
149+
// Special page identified, ensure visibility of container if needed
150+
if (window.location.pathname.includes('popular-repos')) {
151+
const popularRepoContainer = document.getElementById('popular-repos-container');
152+
if (popularRepoContainer) {
153+
popularRepoContainer.style.display = 'block';
154+
}
155+
}
149156
return; // Don't process URLs for special pages
150157
}
151158

0 commit comments

Comments
 (0)