cache external link titles in local storage
This commit is contained in:
parent
634c375145
commit
d85335a9da
2
main.js
2
main.js
|
@ -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"})
|
||||
|
|
Loading…
Reference in New Issue