mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Fix a couple of little bugs
This commit is contained in:
parent
597ad6320b
commit
300b8c0e7e
2 changed files with 2 additions and 1 deletions
|
@ -68,6 +68,7 @@ export class TabHistoryCompletionSource extends Completions.CompletionSourceFuse
|
|||
parent: node["parent"],
|
||||
id: node["id"],
|
||||
level: node["level"] === 0 ? node["level"] : node["level"] - 1,
|
||||
time: node["time"],
|
||||
})
|
||||
for (const child of node["children"]) {
|
||||
this.flattenTree(child, flat)
|
||||
|
|
|
@ -1117,7 +1117,7 @@ export async function addTabHistory() {
|
|||
const current = pages["list"].findIndex(item => item.href === link)
|
||||
if (current !== -1) {
|
||||
pages["current"] = current
|
||||
page["list"][current].time = Date.now()
|
||||
pages["list"][current].time = Date.now()
|
||||
} else {
|
||||
pages["list"].push({
|
||||
parent: pages["current"],
|
||||
|
|
Loading…
Add table
Reference in a new issue