mark-as-read.js 454 B

1234567891011121314
  1. /**
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/2815083
  5. * @preserve
  6. **/
  7. (function (window, Drupal, drupalSettings) {
  8. window.addEventListener('load', function () {
  9. if (drupalSettings.history && drupalSettings.history.nodesToMarkAsRead) {
  10. Object.keys(drupalSettings.history.nodesToMarkAsRead).forEach(Drupal.history.markAsRead);
  11. }
  12. });
  13. })(window, Drupal, drupalSettings);