From 310303ca1a123a77f9bd116af4dc64ad9c3256c5 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 20 Aug 2022 11:17:24 -0400 Subject: Audio download timeout (#2187) * Add support for an idle timeout when downloading audio * Update eslint rules * Pass idleTimeout to the downloader from DisplayAnki * Add anki.downloadTimeout setting * Update tests * Assign _audioDownloadIdleTimeout using settings * Show info about cancelled downloads * Handle Firefox bug * Improve audio errors * Refactor * Move functions to RequestBuilder --- .eslintrc.json | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.eslintrc.json') diff --git a/.eslintrc.json b/.eslintrc.json index 02660d0a..dad145be 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -291,6 +291,14 @@ "rules": { "no-implicit-globals": "error" } + }, + { + "files": [ + "ext/js/**/*.js" + ], + "globals": { + "AbortController": "readonly" + } } ] } -- cgit v1.2.3