Concisify

This commit is contained in:
Jesse Tan 2018-01-16 09:56:18 +01:00
parent 387d4123b5
commit 0bc0969619

View File

@ -114,12 +114,9 @@ function ThemeNav () {
nav.reset = function () {
// Get anchor from URL and open up nested nav
var anchor = encodeURI(window.location.hash);
var anchor = encodeURI(window.location.hash) || '#';
try {
if (!anchor) {
anchor = '#';
}
var link = $('.wy-menu-vertical')
.find('[href="' + anchor + '"]');
// If we didn't find a link, it may be because we clicked on