X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fhistory%2Fjs%2Fmark-as-read.es6.js;h=38461b7fc658b89b27384e95a740e3bd9048d087;hb=9424afc6c1f518c301bf87a23c047d1873435d05;hp=92d1d4ae8a413355645b03e12a7262d28d1fae19;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/modules/history/js/mark-as-read.es6.js b/web/core/modules/history/js/mark-as-read.es6.js index 92d1d4ae8..38461b7fc 100644 --- a/web/core/modules/history/js/mark-as-read.es6.js +++ b/web/core/modules/history/js/mark-as-read.es6.js @@ -7,13 +7,15 @@ * @see Drupal.history */ -(function (window, Drupal, drupalSettings) { +(function(window, Drupal, drupalSettings) { // When the window's "load" event is triggered, mark all enumerated nodes as // read. This still allows for Drupal behaviors (which are triggered on the // "DOMContentReady" event) to add "new" and "updated" indicators. window.addEventListener('load', () => { if (drupalSettings.history && drupalSettings.history.nodesToMarkAsRead) { - Object.keys(drupalSettings.history.nodesToMarkAsRead).forEach(Drupal.history.markAsRead); + Object.keys(drupalSettings.history.nodesToMarkAsRead).forEach( + Drupal.history.markAsRead, + ); } }); -}(window, Drupal, drupalSettings)); +})(window, Drupal, drupalSettings);