diff --git a/src/static/js/pad.js b/src/static/js/pad.js index ccf29cc57..35f783db6 100644 --- a/src/static/js/pad.js +++ b/src/static/js/pad.js @@ -434,8 +434,7 @@ const pad = { padutils.setupGlobalExceptionHandler(); $(document).ready(() => { - // start the custom js - if (typeof customStart === 'function') customStart(); // eslint-disable-line no-undef + if (window.customStart != null) window.customStart(); handshake(); // To use etherpad you have to allow cookies.