diff --git a/resources/js/app.js b/resources/js/app.js index 03cffd418..8a5389f3c 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -3,6 +3,7 @@ import lodash from 'lodash'; import 'bootstrap'; import axios from 'axios'; import addHashActiveTab from './custom'; +import correctionListener from './correction'; window.$ = $; window.jQuery = $; @@ -15,3 +16,4 @@ require('./correction'); // LINK TO TABS from https://github.com/twbs/bootstrap/issues/25220#issuecomment-535915733 addHashActiveTab(); +correctionListener(); diff --git a/resources/js/correction.js b/resources/js/correction.js index 891344fb0..260366ab4 100644 --- a/resources/js/correction.js +++ b/resources/js/correction.js @@ -30,4 +30,4 @@ const correctionListener = () => { document.addEventListener('keydown', ctrlEnterHandler); }; -correctionListener(); +export default correctionListener;