mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-08 11:54:16 +00:00
feat: automatic localstorage cleaning
This commit is contained in:
1 parent
73f422db23
commit
4b369b73a7
5 files changed
+89
-5
No files matched your search
@@ -7,8 +7,7 @@ interface BasketItem {
|
||||
unitPrice: number;
|
||||
}
|
||||
|
||||
// increment the key number if the data schema of the cached basket changes
|
||||
const BASKET_CACHE_KEY = "basket1";
|
||||
const BASKET_CACHE_KEY = "basket";
|
||||
|
||||
document.addEventListener("alpine:init", () => {
|
||||
Alpine.data("basket", (lastPurchaseTime?: number) => ({
|
||||
|
||||
Reference in new issue
Block a user