Project

General

Profile

« Previous | Next » 

Revision 92fc67cf

Added by koszko over 1 year ago

change store names and data keys to singular

View differences:

html/file_preview.js
55 55

  
56 56
async function show_preview(hash_key) {
57 57
    const db = await haketilodb.get();
58
    const file = await haketilodb.idb_get(db.transaction("files"),
59
					  "files", hash_key);
58
    const file = await haketilodb.idb_get(db.transaction("file"),
59
					  "file", hash_key);
60 60
    if (file === undefined) {
61 61
	error("Couldn't find file in Haketilo's internal database :(");
62 62
    } else {

Also available in: Unified diff