mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-20 17:22:14 +00:00
store lastest releases in localstorage, might be a pepega move
This commit is contained in:
parent
38ab15e5d5
commit
310098edc9
1 changed files with 2 additions and 1 deletions
|
|
@ -344,7 +344,7 @@ const nameParseRegex = {
|
|||
"https://miru.kirdow.com/request/?url=https://www.erai-raws.info/rss-": /(\[.*\]\ ?)?(.+?(?=\ \–\ \d))?(\ \–\ )?(\d+)?/i,
|
||||
fallback: /((?:\[[^\]]*\])*)?\s*((?:[^\d\[\.](?!S\d))*)?\s*((?:S\d+[^\w\[]*E?)?[\d\-]*)\s*(.*)?/i
|
||||
}
|
||||
let store = {},
|
||||
let store = JSON.parse(localStorage.getItem("store")),
|
||||
lastResult
|
||||
|
||||
async function hsRss() {
|
||||
|
|
@ -388,6 +388,7 @@ async function hsRss() {
|
|||
}
|
||||
})
|
||||
}
|
||||
localStorage.setItem("store", JSON.stringify(store))
|
||||
}
|
||||
refRel.onclick = () => {
|
||||
hsRss()
|
||||
|
|
|
|||
Loading…
Reference in a new issue