From 1c65dd5ca24052ccf9a92939eecd0966c9635c50 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Wed, 9 Feb 2022 17:09:13 +0100 Subject: adapt to changes in file path format From now on we assume Hydrilla serves file contents at 'file/sha256/' instead of 'file/sha256-'. With this commit we also stop using the "hash_key" property internally. --- background/indexeddb_files_server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'background') diff --git a/background/indexeddb_files_server.js b/background/indexeddb_files_server.js index cf78ca6..0c3f7d8 100644 --- a/background/indexeddb_files_server.js +++ b/background/indexeddb_files_server.js @@ -59,7 +59,7 @@ async function get_resource_files(getting, id) { getting.defs_by_res_id.set(id, definition); const file_proms = (definition.scripts || []) - .map(s => haketilodb.idb_get(getting.tx, "files", s.hash_key)); + .map(s => haketilodb.idb_get(getting.tx, "files", s.sha256)); const deps_proms = (definition.dependencies || []) .map(dep_id => get_resource_files(getting, dep_id)); -- cgit v1.2.3