From 14dfecc4ee633b6863e135ccd67b1d81f2625030 Mon Sep 17 00:00:00 2001 From: Philipp Hemmelmayr Date: Sat, 13 Apr 2019 01:23:04 +0200 Subject: [PATCH] fixed notfound behavior --- ldf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldf.js b/ldf.js index 62da766..5897bc6 100644 --- a/ldf.js +++ b/ldf.js @@ -42,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);