mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2025-12-20 02:05:36 +01:00
Update 3 files
- /js/main.js - /_layouts/default.html - /_layouts/post.html
This commit is contained in:
parent
07a3d18350
commit
9b9efd0f60
3 changed files with 17 additions and 12 deletions
|
|
@ -31,7 +31,7 @@
|
|||
var searchData = JSON.parse(localStorage.getItem(lastUpdated));
|
||||
if (!searchData) {
|
||||
localStorage.clear();
|
||||
$.getJSON("search.json", function (data) {
|
||||
$.getJSON("/search.json", function (data) {
|
||||
localStorage.setItem(lastUpdated, JSON.stringify(data));
|
||||
callback(data);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue