diff options
Diffstat (limited to 'core/misc/drupal.init.es6.js')
-rw-r--r-- | core/misc/drupal.init.es6.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/misc/drupal.init.es6.js b/core/misc/drupal.init.es6.js index 4f7961dd38f7..c3d961550d53 100644 --- a/core/misc/drupal.init.es6.js +++ b/core/misc/drupal.init.es6.js @@ -8,14 +8,14 @@ document.documentElement.className += ' js'; // JavaScript should be made compatible with libraries other than jQuery by // wrapping it in an anonymous closure. -(function(Drupal, drupalSettings) { +(function (Drupal, drupalSettings) { /** * Calls callback when document ready. * * @param {function} callback * The function to be called on document ready. */ - const domReady = callback => { + const domReady = (callback) => { const listener = () => { callback(); document.removeEventListener('DOMContentLoaded', listener); |