Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / history / js / mark-as-read.es6.js
index 92d1d4ae8a413355645b03e12a7262d28d1fae19..38461b7fc658b89b27384e95a740e3bd9048d087 100644 (file)
@@ -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);