From 4a44133112b82830faa528d8c79d85bbc8e35580 Mon Sep 17 00:00:00 2001 From: Fornax Date: Wed, 5 Jan 2022 23:33:42 +0100 Subject: [PATCH] Fix download shortcut --- svelte/src/file_viewer/Downloader.svelte | 4 ++-- svelte/src/file_viewer/FileViewer.svelte | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/svelte/src/file_viewer/Downloader.svelte b/svelte/src/file_viewer/Downloader.svelte index ee09034..9bd6678 100644 --- a/svelte/src/file_viewer/Downloader.svelte +++ b/svelte/src/file_viewer/Downloader.svelte @@ -84,13 +84,13 @@ export const download_list = () => { {#if captcha_type === "rate_limit"} -

+

This file is using a suspicious amount of bandwidth relative to its popularity. To continue downloading this file you will have to prove that you're a human first.

{:else if captcha_type === "malware"} -

+

According to our scanning systems this file may contain a virus. You can continue downloading this file at your own risk, but you will have to prove that you're a human first. diff --git a/svelte/src/file_viewer/FileViewer.svelte b/svelte/src/file_viewer/FileViewer.svelte index 4b0ce42..caa3e47 100644 --- a/svelte/src/file_viewer/FileViewer.svelte +++ b/svelte/src/file_viewer/FileViewer.svelte @@ -289,9 +289,9 @@ const keyboard_event = evt => { break case 83: if (evt.shiftKey) { - download_list() // SHIFT + S downloads all files in list + downloader.download_list() // SHIFT + S downloads all files in list } else { - download() // S to download the current file + downloader.download_file() // S to download the current file } break case 82: // R to toggle list shuffle