Project

General

Profile

« Previous | Next » 

Revision 1c65dd5c

Added by koszko over 1 year ago

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.

View differences:

html/item_preview.js
63 63
 */
64 64
function make_file_link(preview_object, file_ref) {
65 65
    const a = document.createElement("a");
66
    a.href = `${file_preview_link}#${file_ref.hash_key}`;
66
    a.href = `${file_preview_link}#${file_ref.sha256}`;
67 67
    a.innerText = file_ref.file;
68 68
    a.target = "_blank";
69 69
    return a;

Also available in: Unified diff