summaryrefslogtreecommitdiffstats
path: root/assets/js/themes.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/themes.js
parent458e9d6cc77c467a9ae61b5baf151978de92cf31 (diff)
downloadinvidious-17edfd65736fde44d16e5fe9b4e68e637246a127.tar.gz
invidious-17edfd65736fde44d16e5fe9b4e68e637246a127.tar.bz2
invidious-17edfd65736fde44d16e5fe9b4e68e637246a127.zip
Shorten timeout for AJAX
Diffstat (limited to 'assets/js/themes.js')
-rw-r--r--assets/js/themes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/themes.js b/assets/js/themes.js
index 826c6597..683aea39 100644
--- a/assets/js/themes.js
+++ b/assets/js/themes.js
@@ -7,7 +7,7 @@ toggle_theme.addEventListener('click', function () {
var url = '/toggle_theme?redirect=false';
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
- xhr.timeout = 20000;
+ xhr.timeout = 10000;
xhr.open('GET', url, true);
set_mode(dark_mode);