diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-22 15:01:03 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-22 15:01:03 +0200 |
commit | c0354b250f84d578b609a7f25d71dee7fc24e9ca (patch) | |
tree | af586e0a4c44a2f2c8df956ca3b992be15daaba3 /resources/js/db.js | |
parent | 54e5ffaeb79f989463c144e58dfcd677b752c5a9 (diff) |
currency, save/load
Diffstat (limited to 'resources/js/db.js')
-rw-r--r-- | resources/js/db.js | 6 |
1 files changed, 5 insertions, 1 deletions
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()); } /** |