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() {
|
function getLocalArchives() {
|
||||||
|
|
||||||
let a = localStorage.getItem("archives");
|
let a = localStorage.getItem(`${padTitle}_archives`);
|
||||||
|
|
||||||
// Check if we had anything in storage for the archives
|
// Check if we had anything in storage for the archives
|
||||||
if ( a == null ) {
|
if ( a == null ) {
|
||||||
|
@ -96,7 +96,7 @@ function storeArchives(archives) {
|
||||||
if ( !Array.isArray(archives) ) return;
|
if ( !Array.isArray(archives) ) return;
|
||||||
|
|
||||||
// Set the current archives
|
// Set the current archives
|
||||||
localStorage.setItem('archives', JSON.stringify(archives));
|
localStorage.setItem(`${padTitle}_archives`, JSON.stringify(archives));
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderArchivesSelection() {
|
function renderArchivesSelection() {
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var maximumPadSize = Number({{.maximumPadSize}});
|
var maximumPadSize = Number({{.maximumPadSize}});
|
||||||
|
var padTitle = {{.title}};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in New Issue