mirror of https://github.com/JustKato/FreePad.git
* Quick archives fix
This commit is contained in:
parent
e781daec89
commit
b3220abdad
|
@ -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() {
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
|
||||
<script>
|
||||
var maximumPadSize = Number({{.maximumPadSize}});
|
||||
var padTitle = {{.title}};
|
||||
</script>
|
||||
|
||||
<body>
|
||||
|
|
Loading…
Reference in New Issue