mirror of
https://github.com/Mabbs/mabbs.github.io
synced 2026-10-17 23:56:19 -05:00
Update 2 files
- /assets/js/main.js - /Gemfile
This commit is contained in:
1 parent
8fd0fd107f
commit
0a34660f94
2 files changed
+3
-2
No files matched your search
+2
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user