Skip to content

Instantly share code, notes, and snippets.

@rameshelamathi
Created July 18, 2019 13:44
Show Gist options
  • Save rameshelamathi/217bad74c60925b1e4d665a6ef44b788 to your computer and use it in GitHub Desktop.
Save rameshelamathi/217bad74c60925b1e4d665a6ef44b788 to your computer and use it in GitHub Desktop.
These lines around line number 5472
if ("" !== n && "" === $j(this).attr("href").split("#")[0] || "" !== n && "" !== $j(this).attr("href").split("#")[0] && n === window.location.hash || "" !== n && $j(this).attr("href").split("#")[0] === window.location.href.split("#")[0]) {
should be changed to something like:
var $href = $j(this).attr("href") ? $j(this).attr("href").split("#")[0] : "";
if ("" !== n && "" === $href || "" !== n && "" !== $href && n === window.location.hash || "" !== n && $href === window.location.href.split("#")[0]) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment