Finish updating recipes.json

why are there 4 versions of this file active at any given time
This commit is contained in:
hppeng 2023-11-07 21:25:01 -08:00
parent 5b623260e5
commit 47368aab9f
4 changed files with 173 additions and 171 deletions

View file

@ -1,4 +1,4 @@
const ING_DB_VERSION = 28;
const ING_DB_VERSION = 29;
// @See https://github.com/mdn/learning-area/blob/master/javascript/apis/client-side-storage/indexeddb/video-store/index.js
@ -72,6 +72,7 @@ async function load_ings_old_version(version_str) {
}
url = `${baseUrl}/data/${version_str}/recipes.json`;
console.log(url);
result = await (await fetch(url)).json();
recipes = result.recipes;
@ -94,6 +95,7 @@ async function load_ings() {
ings = result;
url = baseUrl + "/recipes_compress.json?"+new Date();
console.log(url);
result = await (await fetch(url)).json();
recipes = result.recipes;

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long