annotate core/modules/history/js/mark-as-read.js @ 15:e200cb7efeb3
Update Drupal core to 8.5.3 via Composer
author |
Chris Cannam |
date |
Thu, 26 Apr 2018 11:26:54 +0100 |
parents |
4c8ae668cc8c |
children |
|
rev |
line source |
Chris@0
|
1 /**
|
Chris@0
|
2 * DO NOT EDIT THIS FILE.
|
Chris@0
|
3 * See the following change record for more information,
|
Chris@0
|
4 * https://www.drupal.org/node/2815083
|
Chris@0
|
5 * @preserve
|
Chris@0
|
6 **/
|
Chris@0
|
7
|
Chris@0
|
8 (function (window, Drupal, drupalSettings) {
|
Chris@0
|
9 window.addEventListener('load', function () {
|
Chris@0
|
10 if (drupalSettings.history && drupalSettings.history.nodesToMarkAsRead) {
|
Chris@0
|
11 Object.keys(drupalSettings.history.nodesToMarkAsRead).forEach(Drupal.history.markAsRead);
|
Chris@0
|
12 }
|
Chris@0
|
13 });
|
Chris@0
|
14 })(window, Drupal, drupalSettings); |