* Quick archives fix

This commit is contained in:
Daniel Legt 2022-05-21 16:19:24 +03:00
parent e781daec89
commit b3220abdad
2 changed files with 3 additions and 2 deletions

View File

@ -71,7 +71,7 @@ function updateStatus(txt, cls) {
function getLocalArchives() {
let a = localStorage.getItem("archives");
let a = localStorage.getItem(`${padTitle}_archives`);
// Check if we had anything in storage for the archives
if ( a == null ) {
@ -96,7 +96,7 @@ function storeArchives(archives) {
if ( !Array.isArray(archives) ) return;
// Set the current archives
localStorage.setItem('archives', JSON.stringify(archives));
localStorage.setItem(`${padTitle}_archives`, JSON.stringify(archives));
}
function renderArchivesSelection() {

View File

@ -18,6 +18,7 @@
<script>
var maximumPadSize = Number({{.maximumPadSize}});
var padTitle = {{.title}};
</script>
<body>