Skip to content

Commit c4cce33

Browse files
committed
Merge pull request #978 from di/fix-976
Only show first tab if hash is empty
2 parents d6e52d2 + d08bc52 commit c4cce33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

warehouse/static/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $(document).ready(function() {
2121

2222
function getTab(selector) {
2323
tab = $(".js-vertical-tab-content" + selector);
24-
return tab.length ? tab : null;
24+
return (selector && tab.length) ? tab : null;
2525
}
2626

2727
window.onhashchange = function() {

0 commit comments

Comments
 (0)