diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-06-16 12:34:00 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-06-16 12:55:17 -0500 |
| commit | 17edfd65736fde44d16e5fe9b4e68e637246a127 (patch) | |
| tree | eacfa846130e16811a86f31a34726fb89a99ff64 /assets/js/embed.js | |
| parent | 458e9d6cc77c467a9ae61b5baf151978de92cf31 (diff) | |
| download | invidious-17edfd65736fde44d16e5fe9b4e68e637246a127.tar.gz invidious-17edfd65736fde44d16e5fe9b4e68e637246a127.tar.bz2 invidious-17edfd65736fde44d16e5fe9b4e68e637246a127.zip | |
Shorten timeout for AJAX
Diffstat (limited to 'assets/js/embed.js')
| -rw-r--r-- | assets/js/embed.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/embed.js b/assets/js/embed.js index 1f742864..16a79e73 100644 --- a/assets/js/embed.js +++ b/assets/js/embed.js @@ -16,7 +16,7 @@ function get_playlist(plid, retries = 5) { var xhr = new XMLHttpRequest(); xhr.responseType = 'json'; - xhr.timeout = 20000; + xhr.timeout = 10000; xhr.open('GET', plid_url, true); xhr.onreadystatechange = function () { |
