From d388f182bd1c69efa44969a2fae84a76ccbcfc34 Mon Sep 17 00:00:00 2001 From: zzossig Date: Thu, 6 Feb 2020 03:56:15 +0900 Subject: [PATCH] search index rollback --- layouts/partials/head/scripts.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/layouts/partials/head/scripts.html b/layouts/partials/head/scripts.html index 6b9c326..06a63eb 100644 --- a/layouts/partials/head/scripts.html +++ b/layouts/partials/head/scripts.html @@ -598,6 +598,10 @@ var fuse = null; + function endsWith(str, suffix) { + return str.indexOf(suffix, str.length - suffix.length) !== -1; + } + function initFuse() { if (!endsWith(baseurl, "/")) { baseurl = baseurl + '/';