summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2020-09-15 15:32:17 +0300
committerAndrew Dolgov <[email protected]>2020-09-15 15:32:17 +0300
commit7e50c6c4b5995da117cd57cc26032140b0008c48 (patch)
tree95886b8ca3f7bc9073a924a6e512ae9e912144ed /js
parent91e1542a8205f76a75778425f298c36236ff5fbf (diff)
- enable CSRF support earlier
- remove rpc/sanityCheck from CSRF-excluded calls
Diffstat (limited to 'js')
-rw-r--r--js/App.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/App.js b/js/App.js
index 7eb4b7f48..2bc2020bb 100644
--- a/js/App.js
+++ b/js/App.js
@@ -588,6 +588,7 @@ const App = {
this.setLoadingProgress(30);
this.initHotkeyActions();
+ this.enableCsrfSupport();
const a = document.createElement('audio');
const hasAudio = !!a.canPlayType;
@@ -628,7 +629,6 @@ const App = {
return errorMsg == "";
},
initSecondStage: function() {
- this.enableCsrfSupport();
document.onkeydown = (event) => { return this.hotkeyHandler(event) };
document.onkeypress = (event) => { return this.hotkeyHandler(event) };