summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
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) };