Skip to content

Commit

Permalink
Merge branch 'master' of github.com:AUTplayed/ldf
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTplayed committed May 11, 2019
2 parents 2005d13 + 14dfecc commit 495818f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion 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 Expand Up @@ -39,7 +42,7 @@ var ldf = {
loc += document.location.search || "";
}
ldf.helpers.request(loc, function (succ, content) {
if (succ && ldf.notfound !== undefined) {
if (succ || ldf.notfound == undefined) {
ldf.change(selector, content);
} else {
ldf.change(selector, ldf.notfound);
Expand Down

0 comments on commit 495818f

Please sign in to comment.