diff options
Diffstat (limited to 'html/file_preview.js')
-rw-r--r-- | html/file_preview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/html/file_preview.js b/html/file_preview.js index 3e22225..be54201 100644 --- a/html/file_preview.js +++ b/html/file_preview.js @@ -55,8 +55,8 @@ function error(msg) { async function show_preview(hash_key) { const db = await haketilodb.get(); - const file = await haketilodb.idb_get(db.transaction("files"), - "files", hash_key); + const file = await haketilodb.idb_get(db.transaction("file"), + "file", hash_key); if (file === undefined) { error("Couldn't find file in Haketilo's internal database :("); } else { |