diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-02-09 17:09:13 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-02-09 18:00:16 +0100 |
commit | 1c65dd5ca24052ccf9a92939eecd0966c9635c50 (patch) | |
tree | 7575157ccd729b4ad79f6c04501023ccb0532a63 /html/item_preview.js | |
parent | 830d22d8931a4e5f0606d401f24d7cd937f8697e (diff) | |
download | browser-extension-1c65dd5ca24052ccf9a92939eecd0966c9635c50.tar.gz browser-extension-1c65dd5ca24052ccf9a92939eecd0966c9635c50.zip |
adapt to changes in file path format
From now on we assume Hydrilla serves file contents at 'file/sha256/<hash>' instead of 'file/sha256-<hash>'.
With this commit we also stop using the "hash_key" property internally.
Diffstat (limited to 'html/item_preview.js')
-rw-r--r-- | html/item_preview.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; |