Skip to content

Commit

Permalink
code opt2
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-rajneeshkumar committed Nov 9, 2023
1 parent dac2ba5 commit eeea789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/tabs-horizontal/tabs-horizontal.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function redirectedNav() {
const hashUrl = window.location.hash.split('#')[1];
setTimeout(() => {
const tab = document.getElementById(hashUrl);
if (tab){
if (tab) {
const tabSection = tab.closest('.section');
tab.click();
window.scroll({
Expand Down

0 comments on commit eeea789

Please sign in to comment.