Skip to content

Commit 71be69b

Browse files
committed
QL: added progress caching and restoring
1 parent 8d58b58 commit 71be69b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

public/questlog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<div class="modal-body">
7272
<p>There has been previous cached progress detected in your browser cache.</p>
7373
<p>Do you want to restore it?</p>
74-
74+
7575
<div class="columns">
7676
<button class="btn btn-success col-6" id="restore-progress">Restore</button>
7777
<button class="btn btn-error col-6" id="discard-progress">Discard</button>

public/script/questlog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ document.addEventListener("DOMContentLoaded", () => {
7979
const restoreButton = document.querySelector("#restore-progress")!;
8080

8181
const cachedState = JSON.parse(window.localStorage.getItem("cachedState")!);
82-
82+
8383
discardButton.addEventListener("click", () => {
8484
window.localStorage.removeItem("cachedState");
8585
progressModal.classList.remove("active");

0 commit comments

Comments
 (0)