去除存在收藏设置时打开失败的问题

This commit is contained in:
枫谷剑仙 2024-07-29 23:37:09 +08:00
parent a39580879c
commit 16efd2b059
2 changed files with 1 additions and 17 deletions

View File

@ -4757,22 +4757,6 @@ function initialize() {
} }
filterBindOnclick(specialFilterFirstLi); filterBindOnclick(specialFilterFirstLi);
//读取储存的筛选收藏列表
const strMakedConfig = JSON.parse(localStorage.getItem(cfgPrefix + "marked-filter"));
if (Array.isArray(strMakedConfig)) {
strMakedConfig.forEach(([groupName, filterName])=>{
const idx1 = specialSearchFunctions.findIndex(group=>group.name == groupName);
if (idx1 < 0 ) return;
if (filterName !== undefined) {
const idx2 = specialSearchFunctions[idx1].functions.findIndex(func=>func.name == filterName);
if (idx2 < 0 ) return;
markedFilter.push([idx1, idx2]);
} else {
markedFilter.push([idx1]);
}
});
}
function newSpecialSearchOption(func, indexs) function newSpecialSearchOption(func, indexs)
{ {
let funcName = returnMonsterNameArr(func)[0]; let funcName = returnMonsterNameArr(func)[0];

View File

@ -32339,7 +32339,7 @@ const cachesMap = new Map([
], ],
[ [
"script.js", "script.js",
"196505d481ce59889633c91f3ee9b364" "e91ff282aced60ee53886c10e5b45c08"
], ],
[ [
"solo.html", "solo.html",