cache external link titles in local storage

This commit is contained in:
quenousimporte 2023-11-14 16:53:45 +01:00
parent 634c375145
commit d85335a9da
1 changed files with 2 additions and 0 deletions

View File

@ -829,6 +829,7 @@ function showlinkdialog(link)
{
a.innerHTML = res.title;
titlemap[link] = res.title;
localStorage.setItem("titlemap", JSON.stringify(titlemap));
}
});
}
@ -1401,6 +1402,7 @@ function init()
if (settings.sync)
{
titlemap = JSON.parse(localStorage.getItem("titlemap")) || {};
if (localStorage.getItem("pgpkeys") && localStorage.getItem("pgpkeys").startsWith("-----BEGIN PGP PUBLIC KEY BLOCK-----"))
{
queryremote({action: "fetch"})