Skip to content

Commit

Permalink
ignore javascript href
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTplayed authored Apr 12, 2019
1 parent 726724d commit 6e021dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ldf.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ var ldf = {
end: undefined,
hash: true,
nav: function (location) {
if (location.startsWith("javascript:")) {
return;
}
if (ldf.hash && !location.startsWith("#")) {
location = "#" + location;
if (location == "#/") {
Expand Down

0 comments on commit 6e021dd

Please sign in to comment.