|
|
@ -337,7 +337,7 @@ function getHistory(){ |
|
|
|
let h = []; |
|
|
|
let h = []; |
|
|
|
let items = JSON.parse(fetch('hiker://history')).filter(v=> v.type!="网页浏览" && JSON.parse(v.params).title==MY_RULE.title).slice(0, 3); |
|
|
|
let items = JSON.parse(fetch('hiker://history')).filter(v=> v.type!="网页浏览" && JSON.parse(v.params).title==MY_RULE.title).slice(0, 3); |
|
|
|
items.forEach(item=>{ |
|
|
|
items.forEach(item=>{ |
|
|
|
let extra = JSON.parse(item.params).params; |
|
|
|
let extra = Object.assign({}, JSON.parse(item.params).params || {}); |
|
|
|
extra.cls = "historylist"; |
|
|
|
extra.cls = "historylist"; |
|
|
|
h.push({ |
|
|
|
h.push({ |
|
|
|
title: item.title, |
|
|
|
title: item.title, |
|
|
|