diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2024-10-29 18:21:58 +0100 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2024-10-29 18:21:58 +0100 |
| commit | dbd96c77e457ae17f55490315ffab325d2560e55 (patch) | |
| tree | 6e770f3422b52708101b440ab5598d3be1676fed /assets | |
| parent | e453a2a682f3cf18cba37329d2f422217dd8e980 (diff) | |
| download | invidious-dbd96c77e457ae17f55490315ffab325d2560e55.tar.gz invidious-dbd96c77e457ae17f55490315ffab325d2560e55.tar.bz2 invidious-dbd96c77e457ae17f55490315ffab325d2560e55.zip | |
Routes: Simplify actions in token_ajax
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/js/handlers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/assets/js/handlers.js b/assets/js/handlers.js index a3199fa7..67cd9081 100644 --- a/assets/js/handlers.js +++ b/assets/js/handlers.js @@ -91,7 +91,7 @@ var count = document.getElementById('count'); count.textContent--; - var url = '/token_ajax?action_revoke_token=1&redirect=false' + + var url = '/token_ajax?action=revoke_token&redirect=false' + '&referer=' + encodeURIComponent(location.href) + '&session=' + target.getAttribute('data-session'); |
