summaryrefslogtreecommitdiffstats
path: root/assets/js/embed.js
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-06-16 12:34:00 -0500
committerOmar Roth <omarroth@protonmail.com>2019-06-16 12:55:17 -0500
commit17edfd65736fde44d16e5fe9b4e68e637246a127 (patch)
treeeacfa846130e16811a86f31a34726fb89a99ff64 /assets/js/embed.js
parent458e9d6cc77c467a9ae61b5baf151978de92cf31 (diff)
downloadinvidious-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.js2
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 () {