File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -447,8 +447,6 @@ class Sidebar {
447
447
const urlHasQueryString = / \? ./
448
448
const urlHasHash = / # ./
449
449
450
- console . log ( urlHasHash . test ( String ( window . location ) ) )
451
-
452
450
if ( urlHasParams . test ( currentUrl ) || urlHasQueryString . test ( currentUrl ) ) {
453
451
currentUrl = currentUrl . split ( '?' ) [ 0 ]
454
452
}
@@ -457,18 +455,6 @@ class Sidebar {
457
455
currentUrl = currentUrl . split ( '#' ) [ 0 ]
458
456
}
459
457
460
- // if (urlHasParams.test(String(window.location)) || urlHasQueryString.test(String(window.location))) {
461
- // currentUrl = String(window.location).split('?')[0]
462
- // } else if (urlHasHash.test(String(window.location))) {
463
- // currentUrl = String(window.location).split('#')[0]
464
- // } else {
465
- // currentUrl = String(window.location)
466
- // }
467
-
468
- if ( currentUrl . slice ( - 1 ) === '#' ) {
469
- currentUrl = currentUrl . slice ( 0 , - 1 )
470
- }
471
-
472
458
const dataAttributes = element . closest ( SELECTOR_NAVIGATION_CONTAINER ) . dataset
473
459
474
460
if ( typeof dataAttributes . activeLinksExact !== 'undefined' ) {
You can’t perform that action at this time.
0 commit comments