🚀 fix: search

This commit is contained in:
shenyu
2020-03-24 19:53:16 +08:00
parent 97e79abc8d
commit 085292ac1d
2 changed files with 8 additions and 1 deletions

View File

@@ -30,6 +30,13 @@
$searchWrap.removeClass('on');
}
});
// 建议在移动端不初始化,其实 /search.xml 文件还挺大的,
if ($('.local-search').size()) {
$.getScript('/js/search.js', function () {
searchFunc("/search.xml", 'local-search-input', 'local-search-result');
});
}
// Mobile Detect
const isMobile = {