Use proper event for global event handlers in answerbox

This commit is contained in:
Andreas Nedbal 2022-01-09 15:17:03 +01:00 committed by Andreas Nedbal
parent d89302f1cc
commit bc979a3615
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import initQuestion from 'retrospring/features/question';
import initModeration from 'retrospring/features/moderation'; import initModeration from 'retrospring/features/moderation';
start(); start();
document.addEventListener('turbolinks:load', initAnswerbox); document.addEventListener('DOMContentLoaded', initAnswerbox);
document.addEventListener('DOMContentLoaded', initInbox); document.addEventListener('DOMContentLoaded', initInbox);
document.addEventListener('DOMContentLoaded', initUser); document.addEventListener('DOMContentLoaded', initUser);
document.addEventListener('turbolinks:load', initSettings); document.addEventListener('turbolinks:load', initSettings);