File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ export async function normalizeHistory(
86
86
if ( ! item . title ) item . title = Utils . getDomainOf ( item . url )
87
87
88
88
normalizeHistoryItem ( item )
89
+
89
90
if ( allVisits && item . visitCount !== undefined && item . visitCount > 1 && item . url ) {
90
91
let visits : browser . history . VisitItem [ ] | undefined = cachedVisits [ item . url ]
91
92
if ( ! visits ) {
@@ -103,10 +104,13 @@ export async function normalizeHistory(
103
104
hItem . url = item . url
104
105
hItem . title = item . title
105
106
hItem . visitCount = item . visitCount
106
- normalizeHistoryItem ( hItem )
107
+ hItem . favicon = ( item as HistoryItem ) . favicon
107
108
normalized . push ( hItem )
108
109
}
109
110
} else {
111
+ if ( item . lastVisitTime === undefined ) continue
112
+ if ( after !== undefined && item . lastVisitTime < after ) continue
113
+ if ( before !== undefined && item . lastVisitTime > before ) continue
110
114
normalized . push ( item )
111
115
}
112
116
}
Original file line number Diff line number Diff line change @@ -118,7 +118,6 @@ const historyList = computed((): HistoryGroup[] => {
118
118
try {
119
119
itemPreview .info = decodeURI (itemPreview .url )
120
120
} catch (err ) {
121
- Logs .warn (' History panel: Cannot decodeURI:' , itemPreview .url )
122
121
itemPreview .info = itemPreview .url
123
122
}
124
123
const domain = Utils .getDomainOf (itemPreview .url )
You can’t perform that action at this time.
0 commit comments