From 6e021dd01984cc6a7bcd96d6967e2364291e0559 Mon Sep 17 00:00:00 2001 From: Philipp Hemmelmayr Date: Sat, 13 Apr 2019 00:45:49 +0200 Subject: [PATCH] ignore javascript href --- ldf.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ldf.js b/ldf.js index 5536940..62da766 100644 --- a/ldf.js +++ b/ldf.js @@ -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 == "#/") {