Update 2 files

- /assets/js/main.js
- /Gemfile
This commit is contained in:
mayx
2025-06-02 14:31:40 +00:00
parent 8fd0fd107f
commit 0a34660f94
2 changed files with 3 additions and 2 deletions

View File

@@ -53,9 +53,9 @@ function getSearchJSON(callback) {
}
var searchData = JSON.parse(localStorage.getItem("blog_" + lastUpdated.valueOf()));
if (!searchData) {
for (var i = 0; i < localStorage.length; i++) {
for (var i = localStorage.length - 1; i >= 0; i--) {
var key = localStorage.key(i);
if (key.startsWith('blog_')) {
if (key.indexOf('blog_') === 0) {
localStorage.removeItem(key);
}
}