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 /src | |
| parent | 458e9d6cc77c467a9ae61b5baf151978de92cf31 (diff) | |
| download | invidious-17edfd65736fde44d16e5fe9b4e68e637246a127.tar.gz invidious-17edfd65736fde44d16e5fe9b4e68e637246a127.tar.bz2 invidious-17edfd65736fde44d16e5fe9b4e68e637246a127.zip | |
Shorten timeout for AJAX
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/views/subscription_manager.ecr | 2 | ||||
| -rw-r--r-- | src/invidious/views/token_manager.ecr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/views/subscription_manager.ecr b/src/invidious/views/subscription_manager.ecr index 508cf51c..aa6c5d81 100644 --- a/src/invidious/views/subscription_manager.ecr +++ b/src/invidious/views/subscription_manager.ecr @@ -65,7 +65,7 @@ function remove_subscription(target) { '&c=' + target.getAttribute('data-ucid'); var xhr = new XMLHttpRequest(); xhr.responseType = 'json'; - xhr.timeout = 20000; + xhr.timeout = 10000; xhr.open('POST', url, true); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); diff --git a/src/invidious/views/token_manager.ecr b/src/invidious/views/token_manager.ecr index 659f5ab3..e1c0228f 100644 --- a/src/invidious/views/token_manager.ecr +++ b/src/invidious/views/token_manager.ecr @@ -57,7 +57,7 @@ function revoke_token(target) { '&session=' + target.getAttribute('data-session'); var xhr = new XMLHttpRequest(); xhr.responseType = 'json'; - xhr.timeout = 20000; + xhr.timeout = 10000; xhr.open('POST', url, true); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); |
