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. --- html/item_preview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html/item_preview.js') diff --git a/html/item_preview.js b/html/item_preview.js index c55183c..bd4fd68 100644 --- a/html/item_preview.js +++ b/html/item_preview.js @@ -63,7 +63,7 @@ const file_preview_link = browser.runtime.getURL("html/file_preview.html"); */ function make_file_link(preview_object, file_ref) { const a = document.createElement("a"); - a.href = `${file_preview_link}#${file_ref.hash_key}`; + a.href = `${file_preview_link}#${file_ref.sha256}`; a.innerText = file_ref.file; a.target = "_blank"; return a; -- cgit v1.2.3 ized Guix
aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2021-12-13gnu: Simplify package inputs....Ludovic Courtès