call addCurHistory in content_helper script

This commit is contained in:
ivcz 2021-10-05 19:19:27 +03:00
parent 67e8d93efa
commit c259a04cd9

View file

@ -1138,6 +1138,11 @@ export async function addTabHistory() {
saveTabHistory(pages)
}
// Calls addTabHistory on page load
/** @hidden */
//#content_helper
addTabHistory()
/** Blur (unfocus) the active element */
//#content
export function unfocus() {
@ -2076,7 +2081,6 @@ loadaucmds("DocStart")
const autocmd_logger = new Logging.Logger("autocmds")
window.addEventListener("pagehide", () => loadaucmds("DocEnd"))
window.addEventListener("DOMContentLoaded", () => {
addTabHistory()
loadaucmds("DocLoad")
})