From c0354b250f84d578b609a7f25d71dee7fc24e9ca Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 22 Aug 2023 15:01:03 +0200 Subject: currency, save/load --- resources/js/db.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'resources/js/db.js') diff --git a/resources/js/db.js b/resources/js/db.js index 5850a01..ede65aa 100644 --- a/resources/js/db.js +++ b/resources/js/db.js @@ -68,9 +68,11 @@ const DB = { */ items: {}, + areas: {}, + translations: {}, - areas: {}, + currencies : {}, }; async function initializeDB () { @@ -85,6 +87,8 @@ async function initializeDB () { } await fetchTranslation(Memory.state.Settings.language); + + DB.currencies = await fetch('/db/_generated/currencies.json').then((response) => response.json()); } /** -- cgit v1.2.3