去除存在收藏设置时打开失败的问题
This commit is contained in:
parent
a39580879c
commit
16efd2b059
16
script.js
16
script.js
|
@ -4757,22 +4757,6 @@ function initialize() {
|
|||
}
|
||||
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)
|
||||
{
|
||||
let funcName = returnMonsterNameArr(func)[0];
|
||||
|
|
|
@ -32339,7 +32339,7 @@ const cachesMap = new Map([
|
|||
],
|
||||
[
|
||||
"script.js",
|
||||
"196505d481ce59889633c91f3ee9b364"
|
||||
"e91ff282aced60ee53886c10e5b45c08"
|
||||
],
|
||||
[
|
||||
"solo.html",
|
||||
|
|
Loading…
Reference in New Issue