aboutsummaryrefslogtreecommitdiff
path: root/html/file_preview.js
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-15 13:18:59 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-15 13:18:59 +0100
commit92fc67cfa135526cef75311c3ee1a14e248c3060 (patch)
tree139aa953f29df525433001cd3b5487cb8df8f91a /html/file_preview.js
parentcf838016b70bc55d8fb19a10b4deb580289e3769 (diff)
downloadbrowser-extension-92fc67cfa135526cef75311c3ee1a14e248c3060.tar.gz
browser-extension-92fc67cfa135526cef75311c3ee1a14e248c3060.zip
change store names and data keys to singular
Diffstat (limited to 'html/file_preview.js')
-rw-r--r--html/file_preview.js4
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 {