general: fixes

This commit is contained in:
k
2024-09-19 21:03:50 +02:00
parent d2349741f7
commit 412769ff03
11 changed files with 40 additions and 21 deletions

View File

@@ -8431,6 +8431,7 @@ lazySignals.then((importedSignals) => {
const head = history.at(0);
if (
head &&
head.preset === preset &&
dateToTestedString(new Date()) === dateToTestedString(head.date)
) {
return;
@@ -8452,10 +8453,11 @@ lazySignals.then((importedSignals) => {
serializedHistory.length = MAX_HISTORY_LENGTH;
}
localStorage.setItem(
LOCAL_STORAGE_HISTORY_KEY,
JSON.stringify(serializedHistory)
);
const jsonHistory = JSON.stringify(serializedHistory);
console.log(jsonHistory);
localStorage.setItem(LOCAL_STORAGE_HISTORY_KEY, jsonHistory);
});
});
}